feat: 完成input_context节点
This commit is contained in:
@@ -7,6 +7,8 @@ from app.config import settings
|
||||
|
||||
@cache
|
||||
def get_llm() -> ChatOpenAI:
|
||||
if not settings.llm_api_key.strip() or not settings.llm_model.strip():
|
||||
raise ValueError("未配置 LLM_API_KEY 或 LLM_MODEL")
|
||||
return ChatOpenAI(
|
||||
model=settings.llm_model,
|
||||
api_key=settings.llm_api_key,
|
||||
|
||||
Reference in New Issue
Block a user