mirror of https://github.com/aliasrobotics/cai.git
Exclude alias0.5 from the forwarding for local evaluation
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
parent
d8d5faacf0
commit
86fcbd5330
|
|
@ -2678,7 +2678,7 @@ class OpenAIChatCompletionsModel(Model):
|
|||
# Determine provider based on model string
|
||||
model_str = str(kwargs["model"]).lower()
|
||||
|
||||
if "alias" in model_str:
|
||||
if "alias" in model_str and "alias0.5" not in model_str: # NOTE: exclude alias0.5
|
||||
kwargs["api_base"] = "https://api.aliasrobotics.com:666/"
|
||||
kwargs["custom_llm_provider"] = "openai"
|
||||
kwargs["api_key"] = os.getenv("ALIAS_API_KEY", "REDACTED_ALIAS_KEY")
|
||||
|
|
|
|||
Loading…
Reference in New Issue