The Zhipu AI API key in string, defaults to None. If None, it will use the environment variable `ZHIPUAI_API_KEY`.
***model_name***: *str='chatglm_130b'*
The model used in Zhipu AI service, defaults to 'chatglm_130b'. Visit Zhipu AI documentation for supported models.
***\*\*kwargs***
Other ChatGLM parameters such as temperature, etc.
<br/>
## Interface 使用说明
The operator takes a piece of text in string as input.
It returns answer in json.
***\_\_call\_\_(txt)***
**Parameters:**
***messages***: *list*
A list of messages to set up chat.
Must be a list of dictionaries with key value from "system", "question", "answer". For example, [{"question": "a past question?", "answer": "a past answer."}, {"question": "current question?"}].
It also accepts the orignal ChatGLM message format like [{"role": "user", "content": "a question?"}, {"role": "assistant", "content": "an answer."}]
**Returns**:
*response: dict*
The original llm response in dictionary, including next answer and token usage.
- [Zilliz partnership with Arize AI](https://zilliz.com/partners/arize-ai): Together Arize AI and Zilliz help users better understand and fine tune their LLM, CV, and NLP models.
- [Revolutionizing Search with Zilliz and Azure OpenAI - Zilliz blog](https://zilliz.com/blog/revolutionizing-search-with-zilliz-and-azure-openai): In AI development, a new integration emerged between Zilliz and Azure OpenAI. Together, they redefine the landscape of similarity and semantic search, infusing them with remarkable speed, intelligence, and safeguards. Let's explore this fusion of cutting-edge technologies.
- [Careers | Zilliz](https://zilliz.com/careers): Build your AI career at Zilliz! We're building the world's best vector database for AI applications.
- [ChatGPT+ Vector database + prompt-as-code - The CVP Stack - Zilliz blog](https://zilliz.com/blog/ChatGPT-VectorDB-Prompt-as-code): Extend the capability of ChatGPT with a Vector database and prompts-as-code
- [About Zen Yui | Zilliz](https://zilliz.com/authors/Zen_Yui): Co-Founder & CTO, Troop
- [TL;DR Milvus regression in LangChain v0.1.5 - Zilliz blog](https://zilliz.com/blog/milvus-regression-in-langchain): If you're encountering a "KeyError: 'pk'" error when using Langchain v0.1.5 to connect to Milvus, here is the solution.
- [LLama2 vs ChatGPT: How They Perform in Question Answering - Zilliz blog](https://zilliz.com/blog/comparing-meta-ai-Llama2-openai-chatgpt): What is Llama 2, and how does it perform in question answering compared to ChatGPT?
- [Prof. Pan Yi joins Zilliz Research Asia as an AI Pharmaceutical Scientist - Zilliz Newsroom; Prof. Pan Yi joins Zilliz Research Asia as an AI Pharmaceutical Scientist](https://zilliz.com/news/Prof-Pan-Yi-joins-Zilliz-Research-Asia-as-an-AI-Pharmaceutical-Scientist): Zilliz, the company behind the worldâs most popular vector database Milvus, announced that Dr. Pan Yi joined Zilliz Research Asia (ZRA) as an AI pharmaceutical scientist.