智谱 GLM

可用模型清单: https://open.bigmodel.cn/dev/api#language

import Agently
agent = (
    Agently.create_agent()
        .set_settings("current_model", "OAIClient")
        .set_settings("model.OAIClient.auth", { "api_key": "<Your-API-Key>" })
        .set_settings("model.OAIClient.url", "https://open.bigmodel.cn/api/paas/v4")
        # 如果需要切换模型,可参考模型清单: https://open.bigmodel.cn/dev/api#language
        # 默认模型: glm-4
        .set_settings("model.OAIClient.options", { "model": "glm-4" })
)