硅基流动 SiliconCloud
可用模型清单:https://docs.siliconflow.cn/reference/chat-completions-1
import Agently
agent = (
Agently.create_agent()
.set_settings("current_model", "OAIClient")
.set_settings("model.OAIClient.auth", { "api_key": "<Your-API-Key>" })
# 使用SiliconFlow的API Base URL
.set_settings("model.OAIClient.url", "https://api.siliconflow.cn/v1")
# 如果需要切换模型,可参考模型清单:https://docs.siliconflow.cn/reference/chat-completions-1
.set_settings("model.OAIClient.options", { "model": "alibaba/Qwen1.5-110B-Chat" })
)