Created
January 4, 2026 17:57
-
-
Save jooray/601a980cb1ce892ec3bf1cd63f6ad120 to your computer and use it in GitHub Desktop.
Litellm config to trick claude code into using Venice.AI's API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For more information see: https://juraj.bednar.io/en/blog-en/2026/01/04/using-claude-code-through-venice-ai/ | |
| model_list: | |
| - model_name: claude-sonnet-4-5-20250929 | |
| litellm_params: | |
| model: openai/claude-opus-45 | |
| api_base: https://api.venice.ai/api/v1 | |
| api_key: "os.environ/VENICE_LITELLM_API_KEY" | |
| # This strips the exact parameter Venice is complaining about | |
| additional_drop_params: ["context_management"] | |
| - model_name: claude-opus-4-5-20251101 | |
| litellm_params: | |
| model: openai/claude-opus-45 | |
| api_base: https://api.venice.ai/api/v1 | |
| api_key: "os.environ/VENICE_LITELLM_API_KEY" | |
| additional_drop_params: ["context_management"] | |
| - model_name: claude-haiku-4-5-20251001 | |
| litellm_params: | |
| model: openai/gemini-3-pro-preview | |
| api_base: https://api.venice.ai/api/v1 | |
| api_key: "os.environ/VENICE_LITELLM_API_KEY" | |
| additional_drop_params: ["context_management"] | |
| litellm_settings: | |
| drop_params: True | |
| set_verbose: False | |
| return_mapped_model_name: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment