欢迎来到海上华帆的博客园子

记录一些学习过程中的心得体会,供自己和有缘人参考!

摘要: 获取大模型API的响应内容的函数返回 return response.choices[0].message from zhipuai import ZhipuAI def get_response_from_model(question): client = ZhipuAI(api_key='you 阅读全文
posted @ 2024-09-13 22:02 海上华帆 阅读(592) 评论(1) 推荐(0)