mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
ui allow ui or eu api base adding model (#9042)
This commit is contained in:
parent
2a377b161d
commit
73448412e1
2 changed files with 15 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue