Skip to main content

GLM

  1. GLM (ChatGLM) is a LLM developed by Zhipu AI and Tsinghua KEG. Go to ZhipuAI and register an account and get the API key. More details can be found here.
  2. Install the required packages dashscope.
pip install zhipuai
  1. Add the following configuration to taskweaver_config.json:
{
"llm.api_type": "zhipuai",
"llm.model": "glm-4",
"llm.embedding_model": "embedding-2",
"llm.embedding_api_type": "zhipuai",
"llm.api_key": "YOUR_API_KEY"
}

NOTE: llm.model is the model name of zhipuai API. You can find the model name in the GLM model list.

  1. Start TaskWeaver and chat with TaskWeaver. You can refer to the Quick Start for more details.