config.toml 中读取模型设置,其中 [llm] section 支持自定义 base_url,因此可以让 agent 接入 siflow endpoint。
本文默认模型为 glm-5.2;完整模型列表和价格请查看 模型广场。
配置
在 API 密钥 页面创建 API Key。复制config/config.example.toml 为 config/config.toml,并将 [llm] section 接入 siflow endpoint:
默认
[llm] API type 为 OpenAI-compatible,因此接入时不需要额外设置 api_type。
验证
运行 agent 并输入一个简单请求。如果它使用配置好的模型返回结果,即表示连接成功:model: glm-5.2 / base_url: https://api.siflow.cn/model-api/v1,可确认请求到达 siflow endpoint。