docs: Fix ChatBaichuan, QianfanChatEndpoint, ChatSparkLLM, ChatZhipuAI docs (#25265)

- **Description:** Fix some chat models docs, include:
  - ChatBaichuan
  - QianfanChatEndpoint
  - ChatSparkLLM
  - ChatZhipuAI
This commit is contained in:
maang-h
2024-08-12 04:23:55 +08:00
committed by GitHub
parent 43deed2a95
commit bc60cddc1b
4 changed files with 10 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ class ChatZhipuAI(BaseChatModel):
Key init args — completion params:
model: Optional[str]
Name of OpenAI model to use.
Name of ZhipuAI model to use.
temperature: float
Sampling temperature.
max_tokens: Optional[int]
@@ -207,9 +207,9 @@ class ChatZhipuAI(BaseChatModel):
Key init args — client params:
api_key: Optional[str]
ZhipuAI API key. If not passed in will be read from env var ZHIPUAI_API_KEY.
ZhipuAI API key. If not passed in will be read from env var ZHIPUAI_API_KEY.
api_base: Optional[str]
Base URL for API requests.
Base URL for API requests.
See full list of supported init args and their descriptions in the params section.
@@ -255,7 +255,7 @@ class ChatZhipuAI(BaseChatModel):
.. code-block:: python
stream = llm.stream(messages)
stream = zhipuai_chat.stream(messages)
full = next(stream)
for chunk in stream:
full += chunk