[feat] gpt35 instruct supamemory
This commit is contained in:
@@ -77,11 +77,12 @@
|
|||||||
<SelectInput className="mt-2 mb-2" bind:value={$DataBase.supaMemoryType}>
|
<SelectInput className="mt-2 mb-2" bind:value={$DataBase.supaMemoryType}>
|
||||||
<OptionInput value="none" >None</OptionInput>
|
<OptionInput value="none" >None</OptionInput>
|
||||||
<OptionInput value="distilbart" >distilbart-cnn-6-6 (Free/Local)</OptionInput>
|
<OptionInput value="distilbart" >distilbart-cnn-6-6 (Free/Local)</OptionInput>
|
||||||
|
<OptionInput value="instruct35" >OpenAI 3.5 Turbo Instruct</OptionInput>
|
||||||
<OptionInput value="davinci" >OpenAI Davinci</OptionInput>
|
<OptionInput value="davinci" >OpenAI Davinci</OptionInput>
|
||||||
<OptionInput value="curie" >OpenAI Curie</OptionInput>
|
<OptionInput value="curie" >OpenAI Curie</OptionInput>
|
||||||
<OptionInput value="subModel" >{language.submodel} ({language.unrecommended})</OptionInput>
|
<OptionInput value="subModel" >{language.submodel} ({language.unrecommended})</OptionInput>
|
||||||
</SelectInput>
|
</SelectInput>
|
||||||
{#if $DataBase.supaMemoryType === 'davinci' || $DataBase.supaMemoryType === 'curie'}
|
{#if $DataBase.supaMemoryType === 'davinci' || $DataBase.supaMemoryType === 'curie' || $DataBase.supaMemoryType === 'instruct35'}
|
||||||
<span class="text-textcolor">{language.SuperMemory} OpenAI Key</span>
|
<span class="text-textcolor">{language.SuperMemory} OpenAI Key</span>
|
||||||
<TextInput size="sm" marginBottom bind:value={$DataBase.supaMemoryKey}/>
|
<TextInput size="sm" marginBottom bind:value={$DataBase.supaMemoryKey}/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -206,7 +206,9 @@ export async function supaMemory(
|
|||||||
},
|
},
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: {
|
body: {
|
||||||
"model": db.supaMemoryType === 'curie' ? "text-curie-001" : "text-davinci-003",
|
"model": db.supaMemoryType === 'curie' ? "text-curie-001"
|
||||||
|
: db.supaMemoryType === 'instruct35' ? 'gpt-3.5-turbo-instruct'
|
||||||
|
: "text-davinci-003",
|
||||||
"prompt": promptbody,
|
"prompt": promptbody,
|
||||||
"max_tokens": 600,
|
"max_tokens": 600,
|
||||||
"temperature": 0
|
"temperature": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user