Provider Slug.
zhipu
Portkey SDK Integration with ZhipuAI
1. Install the Portkey SDK
Install the Portkey SDK in your project using npm or pip:- NodeJS
- Python
2. Initialize Portkey with the Virtual Key
To use ZhipuAI / ChatGLM / BigModel with Portkey, get your API key from here, then add it to Portkey to create the virtual key.- NodeJS SDK
- Python SDK
- OpenAI Node SDK
- OpenAI Python SDK
3. Invoke Chat Completions
- Portkey OR OpenAI NodeJS SDK
- Portkey OR OpenAI Python SDK
- cURL
I am an AI assistant named ZhiPuQingYan(智谱清言), you can call me Xiaozhi🤖