统一抽象 封装 模型配置配置管理

This commit is contained in:
zk
2026-05-26 15:10:21 +08:00
parent b558863207
commit 18589adf8c
10 changed files with 131 additions and 31 deletions
+2 -3
View File
@@ -5,7 +5,7 @@
"""
from app.ai.browser_plug.prompts import FORM_FILL_SYSTEM_PROMPT
from app.ai.models import LLM
from app.ai.model_config import BrowserPlugModel
from app.core.logger import log
@@ -27,8 +27,7 @@ async def generate_form_answer(resume_text: str, job_text: str, agent_config_tex
messages = [("system", system_content), ("human", user_message)]
try:
llm = LLM.DOUBAO_PRO_32K.create(temperature=0.3)
result = await llm.ainvoke(messages)
result = await BrowserPlugModel.FORM_FILL.ainvoke(messages)
return result.content.strip()
except Exception as e:
log.error(f"表单填写AI调用失败: {e}")