ui allow ui or eu api base adding model (#9042)

This commit is contained in:
Ishaan Jaff 2025-03-06 21:22:03 -08:00 • committed by GitHub
parent 2a377b161d
commit 73448412e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 17 deletions

View file

@ -10,18 +10,4 @@ model_list:
api_key: os.environ/OPENAI_API_KEY_MODEL_2
api_base: https://exampleopenaiendpoint-production.up.railway.app/
general_settings:
key_management_system: "aws_secret_manager"
key_management_settings:
hosted_keys: [
"OPENAI_API_KEY_MODEL_1",
"OPENAI_API_KEY_MODEL_2",
]
primary_secret_name: "litellm_secrets"
- model_name: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
litellm_params:
model: bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0
thinking: {"type": "enabled", "budget_tokens": 1024}
max_tokens: 1080
merge_reasoning_content_in_choices: true

View file

@ -24,9 +24,21 @@ const ProviderSpecificFields: React.FC<ProviderSpecificFieldsProps> = ({
return (
<>
{selectedProviderEnum === Providers.OpenAI && (
<Form.Item label="OpenAI Organization ID" name="organization">
<TextInput placeholder="[OPTIONAL] my-unique-org" />
</Form.Item>
<>
<Form.Item
label="API Base"
name="api_base"
>
<Select placeholder="Select API Base" defaultValue="https://api.openai.com/v1">
<Select.Option value="https://api.openai.com/v1">https://api.openai.com/v1</Select.Option>
<Select.Option value="https://eu.api.openai.com">https://eu.api.openai.com</Select.Option>
</Select>
</Form.Item>
<Form.Item label="OpenAI Organization ID" name="organization">
<TextInput placeholder="[OPTIONAL] my-unique-org" />
</Form.Item>
</>
)}
{selectedProviderEnum === Providers.Vertex_AI && (