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:
n4ze3m
2024-10-12 16:53:42 +05:30
parent 3d8c8671e1
commit ff371d6eef
11 changed files with 86 additions and 59 deletions

View File

@@ -17,7 +17,7 @@
},
"baseUrl": {
"label": "Base URL",
"help": "The base URL of the OpenAI API provider. eg (http://loocalhost:8080/v1)",
"help": "The base URL of the OpenAI API provider. eg (http://localhost:1234/v1)",
"required": "Base URL is required.",
"placeholder": "Enter base URL"
},
@@ -58,5 +58,6 @@
"confirm": {
"delete": "Are you sure you want to delete this model?"
}
}
},
"noModelFound": "No model found. Make sure you have added correct provider with base URL and API key."
}