mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
Merge branch 'main' of https://github.com/arc53/DocsGPT
This commit is contained in:
@@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user