Replies: 3 comments 3 replies
-
Hey @RyanOvO! I'm here to help you with any questions or issues you have. Let's tackle this together! Yes, it is possible to configure Here is an example of how you can do this: from langchain_community.chat_models import ChatZhipuAI
zhipuai_chat = ChatZhipuAI(
temperature=0.5,
api_base="http://127.0.0.1:8000/v1/chat/completions",
model="glm-4",
# other params...
)
messages = [
("system", "你是一名专业的翻译家,可以将用户的中文翻译为英文。"),
("human", "我喜欢编程。"),
]
response = zhipuai_chat.invoke(messages)
print(response) In this example, replace |
Beta Was this translation helpful? Give feedback.
-
it's not worked.
but it's error,like: how i can solution? |
Beta Was this translation helpful? Give feedback.
-
ok,Will you consider supporting this feature in the official code? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
None
System Info
None
Beta Was this translation helpful? Give feedback.
All reactions