mirror of https://github.com/aliasrobotics/cai.git
fixed API endpoint for alias models
This commit is contained in:
parent
c49cb0e97c
commit
fc4aa6fd81
|
|
@ -2679,7 +2679,7 @@ class OpenAIChatCompletionsModel(Model):
|
|||
model_str = str(kwargs["model"]).lower()
|
||||
|
||||
if "alias" in model_str:
|
||||
kwargs["api_base"] = "http://api.aliasrobotics.com:666/"
|
||||
kwargs["api_base"] = "https://api.aliasrobotics.com:666/"
|
||||
kwargs["custom_llm_provider"] = "openai"
|
||||
kwargs["api_key"] = os.getenv("ALIAS_API_KEY", "sk-alias-1234567890")
|
||||
elif "/" in model_str:
|
||||
|
|
|
|||
Loading…
Reference in New Issue