mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Support Images and PDFs (#447)
This commit is contained in:
parent
4002e980d9
commit
716f7875a2
14 changed files with 965 additions and 56 deletions
|
|
@ -25,6 +25,7 @@ import {
|
|||
ToolResultDisplay,
|
||||
ToolEditConfirmationDetails,
|
||||
ToolExecuteConfirmationDetails,
|
||||
partListUnionToString,
|
||||
} from '@gemini-code/server';
|
||||
import { type Chat, type PartListUnion, type Part } from '@google/genai';
|
||||
import {
|
||||
|
|
@ -280,13 +281,14 @@ export const useGeminiStream = (
|
|||
);
|
||||
if (abortControllerRef.current.signal.aborted) {
|
||||
declineToolExecution(
|
||||
result.llmContent,
|
||||
partListUnionToString(result.llmContent),
|
||||
ToolCallStatus.Canceled,
|
||||
request,
|
||||
originalConfirmationDetails,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const functionResponse: Part = {
|
||||
functionResponse: {
|
||||
name: request.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue