fix: auto-add provider prefix for custom LLM endpoints
LiteLLM requires model names in format "provider/model-name". When LLM_API_BASE is set, automatically prefix model with "openai/" if no provider prefix is present. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,20 @@
|
||||
# LLM_API_BASE=http://localhost:8000/v1
|
||||
# LLM_API_KEY=your-key
|
||||
# LLM_MODEL=qwen2.5
|
||||
# Note: When LLM_API_BASE is set, model is auto-prefixed as "openai/qwen2.5"
|
||||
|
||||
# =============================================================================
|
||||
# Model naming convention (LiteLLM requires provider prefix)
|
||||
# See: https://docs.litellm.ai/docs/providers
|
||||
# =============================================================================
|
||||
# Format: provider/model-name
|
||||
# Examples:
|
||||
# openai/gpt-4
|
||||
# anthropic/claude-3-haiku-20240307
|
||||
# gemini/gemini-pro
|
||||
# ollama/llama2
|
||||
# huggingface/starcoder
|
||||
# azure/your-deployment-name
|
||||
|
||||
# =============================================================================
|
||||
# Force mock mode (no API calls, uses predefined responses)
|
||||
|
||||
Reference in New Issue
Block a user