Merge branch 'alias00' into '0.4.0'

Add support for alias0

See merge request aliasrobotics/alias_research/cai!173
This commit is contained in:
Víctor Mayoral Vilches 2025-05-16 13:57:23 +00:00
commit 1bf68a4f23
1 changed files with 5 additions and 2 deletions

View File

@ -1514,8 +1514,11 @@ class OpenAIChatCompletionsModel(Model):
# Determine provider based on model string
model_str = str(kwargs["model"]).lower()
# Provider-specific adjustments
if "/" in model_str:
if "alias" in model_str:
kwargs["api_base"] = "http://11.0.0.4:4000/"
kwargs["custom_llm_provider"] = "openai"
kwargs["api_key"] = os.getenv("OPENAI_API_KEY")
elif "/" in model_str:
# Handle provider/model format
provider = model_str.split("/")[0]