feat: Add OpenAI Provider Selection
Add a provider selection dropdown to the OpenAI settings, enabling users to choose from pre-configured options like "Azure" or "Custom." This streamlines setup and allows for more flexibility in configuring OpenAI API endpoints. The dropdown pre-populates base URLs and names based on the selected provider. The dropdown also automatically populates base URLs and names based on the selected provider, further simplifying the configuration process.
This commit is contained in:
32
src/utils/oai-api-providers.ts
Normal file
32
src/utils/oai-api-providers.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export const OAI_API_PROVIDERS = [
|
||||
{
|
||||
label: "LM Studio",
|
||||
value: "lmstudio",
|
||||
baseUrl: "http://localhost:1234/v1"
|
||||
},
|
||||
{
|
||||
label: "OpenAI",
|
||||
value: "openai",
|
||||
baseUrl: "https://api.openai.com/v1"
|
||||
},
|
||||
{
|
||||
label: "Fireworks",
|
||||
value: "fireworks",
|
||||
baseUrl: "https://api.fireworks.ai/inference/v1"
|
||||
},
|
||||
{
|
||||
label: "Groq",
|
||||
value: "groq",
|
||||
baseUrl: "https://api.groq.com/openai/v1"
|
||||
},
|
||||
{
|
||||
label: "Together",
|
||||
value: "together",
|
||||
baseUrl: "https://api.together.xyz/v1"
|
||||
},
|
||||
{
|
||||
label: "Custsom",
|
||||
value: "custom",
|
||||
baseUrl: ""
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user