chore: rename multiple files to improve importability and module structure
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user