refactor(ch1-4): align filenames and update corresponding README sections

This commit is contained in:
Annyfee
2026-01-03 15:35:39 +08:00
parent b6482f1cf6
commit 43fc1717b5
12 changed files with 9 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
from config import OPENAI_API_KEY
from langchain_openai import ChatOpenAI
# 初始化模型
llm = ChatOpenAI(
model="deepseek-chat",
api_key=OPENAI_API_KEY,
base_url="https://api.deepseek.com"
)
# 调用模型
response = llm.invoke('你好喵')
print(response.content)