Remove redundant report citation payloads
This commit is contained in:
parent
c6c070e237
commit
a21ba2c452
|
|
@ -1395,7 +1395,7 @@ Agent问答证据:
|
|||
response = _ensure_course_chat_citations(llm.chat(messages=messages, temperature=0.45, max_tokens=1600))
|
||||
return {
|
||||
"response": response,
|
||||
"citations": _course_chat_citations(),
|
||||
"citations": [],
|
||||
"tool_calls": [
|
||||
{
|
||||
"name": "course_report_context_review",
|
||||
|
|
@ -1426,7 +1426,7 @@ Agent问答证据:
|
|||
)
|
||||
return {
|
||||
"response": _course_chat_response(message),
|
||||
"citations": _course_chat_citations(),
|
||||
"citations": [],
|
||||
"tool_calls": [
|
||||
{
|
||||
"name": "course_report_context_fallback",
|
||||
|
|
@ -1513,7 +1513,7 @@ Agent问答证据:
|
|||
response = _ensure_chat_citations(llm.chat(messages=messages, temperature=0.45, max_tokens=1200))
|
||||
return {
|
||||
"response": response,
|
||||
"citations": _chat_citations(),
|
||||
"citations": [],
|
||||
"tool_calls": [
|
||||
{
|
||||
"name": "cached_report_context",
|
||||
|
|
@ -1536,7 +1536,7 @@ Agent问答证据:
|
|||
)
|
||||
return {
|
||||
"response": _fallback_cached_chat_response(message),
|
||||
"citations": _chat_citations(),
|
||||
"citations": [],
|
||||
"tool_calls": [
|
||||
{
|
||||
"name": "cached_report_context_fallback",
|
||||
|
|
|
|||
|
|
@ -868,7 +868,7 @@ const sendToReportAgent = async (message) => {
|
|||
chatHistory.value.push({
|
||||
role: 'assistant',
|
||||
content: res.data.response || res.data.answer || t('step5.noResponse'),
|
||||
citations: res.data.citations || [],
|
||||
citations: [],
|
||||
timestamp: new Date().toISOString()
|
||||
})
|
||||
addLog(t('log.reportAgentReplied'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue