feat:客服意图识别增加记忆功能
This commit is contained in:
@@ -36,8 +36,13 @@ def build_anonymous_runtime(
|
||||
config_getter=config_getter,
|
||||
)
|
||||
|
||||
async def recognize(query):
|
||||
return await intent_recognize(query, llm_client=llm_client)
|
||||
async def recognize(query, history=None):
|
||||
return await intent_recognize(
|
||||
query,
|
||||
llm_client=llm_client,
|
||||
history=history,
|
||||
config_getter=config_getter,
|
||||
)
|
||||
|
||||
async def generate(messages):
|
||||
return await generate_answer(
|
||||
|
||||
Reference in New Issue
Block a user