fix: conflict

This commit is contained in:
suyao 2025-07-18 01:21:53 +08:00
parent 5e33a91154
commit 155dc1c578
No known key found for this signature in database
3 changed files with 5 additions and 8 deletions

View File

@ -84,11 +84,7 @@ const ThinkingButton: FC<Props> = ({ ref, model, assistant, ToolbarButton }): Re
if (isDoubaoModel) return 'doubao'
if (isDeepResearchModel) return 'openai_deep_research'
return 'default'
<<<<<<< HEAD
}, [isGeminiModel, isGrokModel, isQwenModel, isDoubaoModel, isDeepResearchModel])
=======
}, [isGeminiModel, isGrokModel, isQwenModel, isDoubaoModel, isGeminiFlashModel])
>>>>>>> main
}, [isGeminiModel, isGrokModel, isQwenModel, isDoubaoModel, isDeepResearchModel, isGeminiFlashModel])
// 获取当前模型支持的选项
const supportedOptions = useMemo(() => {

View File

@ -19,9 +19,10 @@ export const createToolCallbacks = (deps: ToolCallbacksDependencies) => {
return {
onToolCallPending: (toolResponse: MCPToolResponse) => {
if (blockManager.hasInitialPlaceholder) {
const changes = {
const changes: Partial<ToolMessageBlock> = {
type: MessageBlockType.TOOL,
status: MessageBlockStatus.PENDING,
toolId: toolResponse.id,
toolName: toolResponse.tool.name,
metadata: { rawMcpToolResponse: toolResponse }
}
@ -49,7 +50,7 @@ export const createToolCallbacks = (deps: ToolCallbacksDependencies) => {
const targetBlockId = toolCallIdToBlockIdMap.get(toolResponse.id)
if (targetBlockId && toolResponse.status === 'invoking') {
const changes = {
const changes: Partial<ToolMessageBlock> = {
status: MessageBlockStatus.PROCESSING,
metadata: { rawMcpToolResponse: toolResponse }
}

View File

@ -680,7 +680,7 @@ export interface GetMCPPromptResponse {
messages: {
role: string
content: {
type: 'text' | 'image' | 'audio' | 'resource'
type: 'text' | 'image' | 'audio' | 'resource' | 'resource_link'
text?: string
data?: string
mimeType?: string