from langchain.chat_models import init_chat_model
# 设置环境变量
api_key = "sk-3"
api_base = "https://api.deepseek.com/"
# 初始化聊天模型和嵌入模型
llm = init_chat_model(
model="deepseek-chat",
api_key=api_key,
api_base=api_base,
temperature=0
langchain调用deepseek api
LangChain调用DeepSeek API参数说明
最新推荐文章于 2025-10-15 18:30:53 发布

最低0.47元/天 解锁文章
1592






