This commit is contained in:
GH Action - Upstream Sync
2025-04-02 01:36:06 +00:00
16 changed files with 703 additions and 334 deletions

View File

@@ -18,6 +18,7 @@ export function handleFetchAnswer(
| {
result: any;
answer: any;
thought: any;
sources: any;
toolCalls: ToolCallsType[];
conversationId: any;
@@ -26,6 +27,7 @@ export function handleFetchAnswer(
| {
result: any;
answer: any;
thought: any;
sources: any;
toolCalls: ToolCallsType[];
query: string;
@@ -74,9 +76,11 @@ export function handleFetchAnswer(
answer: result,
query: question,
result,
thought: data.thought,
sources: data.sources,
toolCalls: data.tool_calls,
conversationId: data.conversation_id,
title: data.title || null,
};
});
}
@@ -99,6 +103,7 @@ export function handleFetchAnswerSteaming(
return {
prompt: item.prompt,
response: item.response,
thought: item.thought,
tool_calls: item.tool_calls,
};
});