-
Notifications
You must be signed in to change notification settings - Fork 0
feat: litellm config yaml #369
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
c36eb1d
2c9da88
6d1cc3f
fb9379f
67c22bb
919bcab
cd7081a
9d055b1
f6b4fa4
6968903
bee6f8b
6fa9a98
47f7479
faf1cf4
9146c60
dba1cb6
d251cd0
ace752c
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,83 @@ | ||
| general_settings: | ||
| store_model_in_db: true | ||
|
|
||
| litellm_settings: | ||
| drop_params: true | ||
| request_timeout: 60 | ||
| json_logs: true | ||
|
|
||
| model_list: | ||
| - model_name: cerebras/gemma-4-31b | ||
| litellm_params: | ||
| model: cerebras/gemma-4-31b | ||
|
|
||
| - model_name: google/gemini-flash-lite-latest | ||
| litellm_params: | ||
| model: gemini/gemini-flash-lite-latest | ||
|
|
||
| - model_name: google/gemma-4-31b-it | ||
| litellm_params: | ||
| model: gemini/gemma-4-31b-it | ||
|
|
||
| - model_name: groq/gpt-oss-120b | ||
| litellm_params: | ||
| model: groq/openai/gpt-oss-120b | ||
|
|
||
| - model_name: nous/hy3:free | ||
| litellm_params: | ||
| model: openai/tencent/hy3:free | ||
| litellm_credential_name: nous | ||
|
|
||
| - model_name: opencode-zen/deepseek-v4-flash-free | ||
| litellm_params: | ||
| model: openai/deepseek-v4-flash-free | ||
| litellm_credential_name: opencode_zen | ||
|
|
||
| - model_name: opencode-zen/mimo-v2.5-free | ||
| litellm_params: | ||
| model: openai/mimo-v2.5-free | ||
| litellm_credential_name: opencode_zen | ||
|
|
||
| - model_name: openrouter/free | ||
| litellm_params: | ||
| model: openrouter/openrouter/free | ||
|
|
||
| - model_name: smart-router | ||
| litellm_params: | ||
| model: auto_router/complexity_router | ||
| complexity_router_config: | ||
| tiers: | ||
| SIMPLE: opencode-zen/deepseek-v4-flash-free | ||
| MEDIUM: opencode-zen/deepseek-v4-flash-free | ||
| COMPLEX: nous/hy3:free | ||
| REASONING: nous/hy3:free | ||
| adaptive: true | ||
| session_affinity: true | ||
| complexity_router_default_model: nous/hy3:free | ||
|
Comment on lines
+46
to
+57
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. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n -C2 'NOUS_API_KEY|OPENCODE_ZEN_API_KEY' \
agent/.env.example agent/compose.yaml agent/litellm/config.yamlRepository: yxtay/docker-stacks Length of output: 993 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== files =="
git ls-files agent | sed -n '1,200p'
echo "== relevant env/compose/config excerpts =="
for f in agent/.env.example agent/compose.yaml agent/litellm/config.yaml agent/Dockerfile* Dockerfile* compose.yaml; do
if [ -f "$f" ]; then
echo "--- $f"
wc -l "$f"
sed -n '1,140p' "$f"
fi
doneRepository: yxtay/docker-stacks Length of output: 6835 🌐 Web query:
💡 Result: In LiteLLM, you can use the Citations:
Declare and fail fast on the smart-router credentials.
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
|
|
||
| credential_list: | ||
| - credential_name: nous | ||
| credential_values: | ||
| api_key: os.environ/NOUS_API_KEY | ||
| api_base: https://inference-api.nousresearch.com/v1 | ||
| credential_info: {} | ||
|
|
||
| - credential_name: opencode_zen | ||
| credential_values: | ||
| api_key: os.environ/OPENCODE_ZEN_API_KEY | ||
| api_base: https://opencode.ai/zen/v1 | ||
| credential_info: {} | ||
|
|
||
| - credential_name: opencode_go | ||
| credential_values: | ||
| api_key: os.environ/OPENCODE_GO_API_KEY | ||
| api_base: https://opencode.ai/zen/go/v1 | ||
| credential_info: {} | ||
|
|
||
| # guardrails: | ||
| # - guardrail_name: headroom | ||
| # litellm_params: | ||
| # guardrail: headroom | ||
| # mode: pre_call | ||
| # api_base: http://headroom:8787 | ||
| # default_on: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Keep the bind-mount source under
/apps/litellm/../litellm/config.yamlviolates the required host bind-mount layout. Provision the repository config to/apps/litellm/config.yamland retain that absolute source path.Proposed fix
As per coding guidelines, Docker Compose files must “Use host bind mounts under
/apps/<service-name>/instead of named volumes.”📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines