mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(ui): remove misleading 'Custom' option mention from OpenAI endpoint tooltips (#16622)
The tooltip for OpenAI api_base select fields incorrectly mentioned 'choose Custom to enter your own' but there was no Custom option available in the dropdown. This fix updates the tooltip text to accurately reflect the available options. Affected providers: - OpenAI - OpenAI_Text
This commit is contained in:
parent
4a486dc669
commit
40a9d72be7
1 changed files with 16 additions and 6 deletions
|
|
@ -68,10 +68,15 @@ const PROVIDER_CREDENTIAL_FIELDS: Record<Providers, ProviderCredentialField[]> =
|
|||
{
|
||||
key: "api_base",
|
||||
label: "API Base",
|
||||
type: "text",
|
||||
placeholder: "https://api.openai.com/v1",
|
||||
tooltip: "Common endpoints: https://api.openai.com/v1, https://eu.api.openai.com, https://us.api.openai.com",
|
||||
type: "select",
|
||||
placeholder: "Select an endpoint",
|
||||
tooltip: "Select from common OpenAI endpoints",
|
||||
defaultValue: "https://api.openai.com/v1",
|
||||
options: [
|
||||
"https://api.openai.com/v1",
|
||||
"https://us.api.openai.com/v1",
|
||||
"https://eu.api.openai.com/v1",
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "organization",
|
||||
|
|
@ -89,10 +94,15 @@ const PROVIDER_CREDENTIAL_FIELDS: Record<Providers, ProviderCredentialField[]> =
|
|||
{
|
||||
key: "api_base",
|
||||
label: "API Base",
|
||||
type: "text",
|
||||
placeholder: "https://api.openai.com/v1",
|
||||
tooltip: "Common endpoints: https://api.openai.com/v1, https://eu.api.openai.com, https://us.api.openai.com",
|
||||
type: "select",
|
||||
placeholder: "Select an endpoint",
|
||||
tooltip: "Select from common OpenAI endpoints",
|
||||
defaultValue: "https://api.openai.com/v1",
|
||||
options: [
|
||||
"https://api.openai.com/v1",
|
||||
"https://us.api.openai.com/v1",
|
||||
"https://eu.api.openai.com/v1",
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "organization",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue