adding config for azure openai and more customisation for custom ai models
This commit is contained in:
parent
0d5e776424
commit
be4b6aaceb
|
@ -63,11 +63,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<Label size="M">Default Model</Label>
|
<Label size="M">Default Model</Label>
|
||||||
|
{#if config.provider !== Providers.Custom.name}
|
||||||
<Select
|
<Select
|
||||||
placeholder={config.provider ? "Choose an option" : "Select a provider first"}
|
placeholder={config.provider ? "Choose an option" : "Select a provider first"}
|
||||||
bind:value={config.defaultModel}
|
bind:value={config.defaultModel}
|
||||||
options={config.provider ? Providers[config.provider].models : []}
|
options={config.provider ? Providers[config.provider].models : []}
|
||||||
/>
|
/>
|
||||||
|
{:else}
|
||||||
|
<Input bind:value={config.defaultModel} />
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<Label size="M">Base URL</Label>
|
<Label size="M">Base URL</Label>
|
||||||
|
|
|
@ -22,6 +22,17 @@ export const Providers = {
|
||||||
TogetherAI: {
|
TogetherAI: {
|
||||||
name: "Together AI",
|
name: "Together AI",
|
||||||
// TODO: too many - probably need to use an autocomplete for this
|
// TODO: too many - probably need to use an autocomplete for this
|
||||||
|
models: [
|
||||||
|
"gpt-4o-mini",
|
||||||
|
"gpt-4o",
|
||||||
|
"gpt-3.5-turbo",
|
||||||
|
"chatgpt-4o-latest",
|
||||||
|
"gpt-4-turbo",
|
||||||
|
"gpt-4",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
AzureOpenAI: {
|
||||||
|
name: "Azure Open AI",
|
||||||
models: ["whatever"]
|
models: ["whatever"]
|
||||||
},
|
},
|
||||||
Custom: {
|
Custom: {
|
||||||
|
|
Loading…
Reference in New Issue