-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
feat: add dev and wildcard proxy configs for local testing #30556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
26cc1b3
146626d
1c9d622
ec1a809
d350eea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,191 @@ | ||||||
| model_list: | ||||||
| # ---------- Anthropic native ---------- | ||||||
| - model_name: anthropic-haiku-4-5 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-haiku-4-5 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
| - model_name: anthropic-sonnet-4-5 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-sonnet-4-5 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
| - model_name: anthropic-opus-4-5 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-opus-4-5 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
| - model_name: anthropic-sonnet-4-6 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-sonnet-4-6 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
| - model_name: anthropic-opus-4-6 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-opus-4-6 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
| - model_name: anthropic-opus-4-7 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-opus-4-7 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
| - model_name: anthropic-opus-4-8 | ||||||
| litellm_params: | ||||||
| model: anthropic/claude-opus-4-8 | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
|
|
||||||
| # ---------- Bedrock Invoke ---------- | ||||||
| - model_name: bedrock-invoke-haiku-4-5 | ||||||
| litellm_params: | ||||||
| model: bedrock/us.anthropic.claude-haiku-4-5-20251001-v1:0 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-invoke-sonnet-4-5 | ||||||
| litellm_params: | ||||||
| model: bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-invoke-opus-4-5 | ||||||
| litellm_params: | ||||||
| model: bedrock/us.anthropic.claude-opus-4-5-20251101-v1:0 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-invoke-sonnet-4-6 | ||||||
| litellm_params: | ||||||
| model: bedrock/us.anthropic.claude-sonnet-4-6 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-invoke-opus-4-6 | ||||||
| litellm_params: | ||||||
| model: bedrock/us.anthropic.claude-opus-4-6-v1 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-invoke-opus-4-7 | ||||||
| litellm_params: | ||||||
| model: bedrock/global.anthropic.claude-opus-4-7 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-invoke-opus-4-8 | ||||||
| litellm_params: | ||||||
| model: bedrock/global.anthropic.claude-opus-4-8 | ||||||
| aws_region_name: us-east-1 | ||||||
|
|
||||||
| # ---------- Bedrock Converse ---------- | ||||||
| - model_name: bedrock-converse-haiku-4-5 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/us.anthropic.claude-haiku-4-5-20251001-v1:0 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-converse-sonnet-4-5 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-converse-opus-4-5 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/us.anthropic.claude-opus-4-5-20251101-v1:0 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-converse-sonnet-4-6 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/us.anthropic.claude-sonnet-4-6 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-converse-opus-4-6 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/us.anthropic.claude-opus-4-6-v1 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-converse-opus-4-7 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/global.anthropic.claude-opus-4-7 | ||||||
| aws_region_name: us-east-1 | ||||||
| - model_name: bedrock-converse-opus-4-8 | ||||||
| litellm_params: | ||||||
| model: bedrock/converse/global.anthropic.claude-opus-4-8 | ||||||
| aws_region_name: us-east-1 | ||||||
|
|
||||||
| # ---------- Vertex AI (Anthropic on Vertex) ---------- | ||||||
| - model_name: vertex-haiku-4-5 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-haiku-4-5@20251001 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| - model_name: vertex-sonnet-4-5 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-sonnet-4-5@20250929 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| - model_name: vertex-opus-4-5 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-opus-4-5@20251101 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| - model_name: vertex-sonnet-4-6 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-sonnet-4-6 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| - model_name: vertex-opus-4-6 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-opus-4-6 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| - model_name: vertex-opus-4-7 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-opus-4-7 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| - model_name: vertex-opus-4-8 | ||||||
| litellm_params: | ||||||
| model: vertex_ai/claude-opus-4-8 | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
|
|
||||||
| # ---------- Gemini Enterprise Agent Platform ---------- | ||||||
| - model_name: gemini-claude-code | ||||||
| litellm_params: | ||||||
| model: vertex_ai/gemini-2.5-pro | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
| vertex_credentials: os.environ/GEMINI_CLAUDE_CODE_VERTEX_CREDENTIALS | ||||||
| extra_body: | ||||||
| labels: | ||||||
| workload: claude-code | ||||||
| source: litellm | ||||||
| environment: internal | ||||||
| reconciliation_group: claude-code-gemini | ||||||
|
|
||||||
| # ---------- Azure AI Foundry (Anthropic on Azure) ---------- | ||||||
| - model_name: azure-haiku-4-5 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-haiku-4-5 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
| - model_name: azure-sonnet-4-5 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-sonnet-4-5 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
| - model_name: azure-opus-4-5 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-opus-4-5 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
| - model_name: azure-sonnet-4-6 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-sonnet-4-6 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
| - model_name: azure-opus-4-6 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-opus-4-6 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
| - model_name: azure-opus-4-7 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-opus-4-7 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
| - model_name: azure-opus-4-8 | ||||||
| litellm_params: | ||||||
| model: azure_ai/claude-opus-4-8 | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
|
|
||||||
| # ---------- OpenAI ---------- | ||||||
| - model_name: gpt-5.5 | ||||||
| litellm_params: | ||||||
| model: openai/gpt-5.5 | ||||||
| api_key: os.environ/OPENAI_API_KEY | ||||||
|
|
||||||
| general_settings: | ||||||
| master_key: sk-1234 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Medium: Hardcoded proxy admin key An attacker can send
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a false positive for these files. Generated by Claude Code |
||||||
|
|
||||||
| litellm_settings: | ||||||
| drop_params: True | ||||||
| telemetry: False | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,52 @@ | ||||||
| model_list: | ||||||
| # ---------- Anthropic native ---------- | ||||||
| - model_name: "anthropic/*" | ||||||
| litellm_params: | ||||||
| model: "anthropic/*" | ||||||
| api_key: os.environ/ANTHROPIC_API_KEY | ||||||
|
|
||||||
| # ---------- Bedrock ---------- | ||||||
| - model_name: "bedrock/*" | ||||||
| litellm_params: | ||||||
| model: "bedrock/*" | ||||||
| aws_region_name: us-east-1 | ||||||
|
|
||||||
| # ---------- Vertex AI ---------- | ||||||
| - model_name: "vertex_ai/*" | ||||||
| litellm_params: | ||||||
| model: "vertex_ai/*" | ||||||
| vertex_project: os.environ/VERTEXAI_PROJECT | ||||||
| vertex_location: global | ||||||
|
|
||||||
| # ---------- Azure AI Foundry ---------- | ||||||
| - model_name: "azure_ai/*" | ||||||
| litellm_params: | ||||||
| model: "azure_ai/*" | ||||||
| api_base: os.environ/AZURE_AI_API_BASE | ||||||
| api_key: os.environ/AZURE_AI_API_KEY | ||||||
|
|
||||||
| # ---------- Azure OpenAI ---------- | ||||||
| - model_name: "azure/*" | ||||||
| litellm_params: | ||||||
| model: "azure/*" | ||||||
| api_base: os.environ/AZURE_API_BASE | ||||||
| api_key: os.environ/AZURE_API_KEY | ||||||
|
|
||||||
| # ---------- Gemini ---------- | ||||||
| - model_name: "gemini/*" | ||||||
| litellm_params: | ||||||
| model: "gemini/*" | ||||||
| api_key: os.environ/GEMINI_API_KEY | ||||||
|
|
||||||
| # ---------- OpenAI ---------- | ||||||
| - model_name: "openai/*" | ||||||
| litellm_params: | ||||||
| model: "openai/*" | ||||||
| api_key: os.environ/OPENAI_API_KEY | ||||||
|
|
||||||
| general_settings: | ||||||
| master_key: sk-1234 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Medium: Hardcoded proxy admin key An attacker can send
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as the |
||||||
|
|
||||||
| litellm_settings: | ||||||
| drop_params: True | ||||||
| telemetry: False | ||||||
Uh oh!
There was an error while loading. Please reload this page.