Commit ca91d563 authored by Your Name's avatar Your Name

Fix model name format to use coderai provider

- Changed model name format from openai/... to coderai/...
- This ensures the model is correctly identified as coderai/TeichAI/Qwen3-8B-...
parent 7b194a45
......@@ -13,6 +13,13 @@ from typing import List, Dict, Any, Optional, AsyncGenerator, Union
try:
import litellm
# Register 'coderai' as an alias for the 'openai' provider
# This allows LiteLLM to use its internal HTTP handler for custom providers
# by mapping them to the 'openai' provider behavior
litellm.custom_provider_map = [
{"provider": "coderai", "custom_handler": litellm.openai}
]
# Register 'coderai' as an alias for the 'openai' provider
# This allows LiteLLM to use its internal HTTP handler for custom providers
# by mapping them to the 'openai' provider behavior
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment