修改模型使用
This commit is contained in:
@@ -17,7 +17,7 @@ def _build_chain(prompt: str):
|
|||||||
"""构建单个提取链:prompt → LLM → JSON解析"""
|
"""构建单个提取链:prompt → LLM → JSON解析"""
|
||||||
return (
|
return (
|
||||||
ChatPromptTemplate.from_messages([("system", prompt), ("human", "{text}")])
|
ChatPromptTemplate.from_messages([("system", prompt), ("human", "{text}")])
|
||||||
| LLM.DOUBAO_PRO_32K.create(temperature=0)
|
| LLM.CLAUDE_SONNET_4.create(temperature=0)
|
||||||
| JsonOutputParser()
|
| JsonOutputParser()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user