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:
sep-grindr 2025-11-13 21:43:57 -08:00 • committed by GitHub
parent 4a486dc669
commit 40a9d72be7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",