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 class="form-row">
|
||||
<Label size="M">Default Model</Label>
|
||||
<Select
|
||||
placeholder={config.provider ? "Choose an option" : "Select a provider first"}
|
||||
bind:value={config.defaultModel}
|
||||
options={config.provider ? Providers[config.provider].models : []}
|
||||
/>
|
||||
{#if config.provider !== Providers.Custom.name}
|
||||
<Select
|
||||
placeholder={config.provider ? "Choose an option" : "Select a provider first"}
|
||||
bind:value={config.defaultModel}
|
||||
options={config.provider ? Providers[config.provider].models : []}
|
||||
/>
|
||||
{:else}
|
||||
<Input bind:value={config.defaultModel} />
|
||||
{/if}
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<Label size="M">Base URL</Label>
|
||||
|
|
|
@ -22,6 +22,17 @@ export const Providers = {
|
|||
TogetherAI: {
|
||||
name: "Together AI",
|
||||
// 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"]
|
||||
},
|
||||
Custom: {
|
||||
|
|
Loading…
Reference in New Issue