mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-11 08:19:01 +08:00
fix: conflict
This commit is contained in:
parent
5e33a91154
commit
155dc1c578
@ -84,11 +84,7 @@ const ThinkingButton: FC<Props> = ({ ref, model, assistant, ToolbarButton }): Re
|
|||||||
if (isDoubaoModel) return 'doubao'
|
if (isDoubaoModel) return 'doubao'
|
||||||
if (isDeepResearchModel) return 'openai_deep_research'
|
if (isDeepResearchModel) return 'openai_deep_research'
|
||||||
return 'default'
|
return 'default'
|
||||||
<<<<<<< HEAD
|
}, [isGeminiModel, isGrokModel, isQwenModel, isDoubaoModel, isDeepResearchModel, isGeminiFlashModel])
|
||||||
}, [isGeminiModel, isGrokModel, isQwenModel, isDoubaoModel, isDeepResearchModel])
|
|
||||||
=======
|
|
||||||
}, [isGeminiModel, isGrokModel, isQwenModel, isDoubaoModel, isGeminiFlashModel])
|
|
||||||
>>>>>>> main
|
|
||||||
|
|
||||||
// 获取当前模型支持的选项
|
// 获取当前模型支持的选项
|
||||||
const supportedOptions = useMemo(() => {
|
const supportedOptions = useMemo(() => {
|
||||||
|
|||||||
@ -19,9 +19,10 @@ export const createToolCallbacks = (deps: ToolCallbacksDependencies) => {
|
|||||||
return {
|
return {
|
||||||
onToolCallPending: (toolResponse: MCPToolResponse) => {
|
onToolCallPending: (toolResponse: MCPToolResponse) => {
|
||||||
if (blockManager.hasInitialPlaceholder) {
|
if (blockManager.hasInitialPlaceholder) {
|
||||||
const changes = {
|
const changes: Partial<ToolMessageBlock> = {
|
||||||
type: MessageBlockType.TOOL,
|
type: MessageBlockType.TOOL,
|
||||||
status: MessageBlockStatus.PENDING,
|
status: MessageBlockStatus.PENDING,
|
||||||
|
toolId: toolResponse.id,
|
||||||
toolName: toolResponse.tool.name,
|
toolName: toolResponse.tool.name,
|
||||||
metadata: { rawMcpToolResponse: toolResponse }
|
metadata: { rawMcpToolResponse: toolResponse }
|
||||||
}
|
}
|
||||||
@ -49,7 +50,7 @@ export const createToolCallbacks = (deps: ToolCallbacksDependencies) => {
|
|||||||
const targetBlockId = toolCallIdToBlockIdMap.get(toolResponse.id)
|
const targetBlockId = toolCallIdToBlockIdMap.get(toolResponse.id)
|
||||||
|
|
||||||
if (targetBlockId && toolResponse.status === 'invoking') {
|
if (targetBlockId && toolResponse.status === 'invoking') {
|
||||||
const changes = {
|
const changes: Partial<ToolMessageBlock> = {
|
||||||
status: MessageBlockStatus.PROCESSING,
|
status: MessageBlockStatus.PROCESSING,
|
||||||
metadata: { rawMcpToolResponse: toolResponse }
|
metadata: { rawMcpToolResponse: toolResponse }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -680,7 +680,7 @@ export interface GetMCPPromptResponse {
|
|||||||
messages: {
|
messages: {
|
||||||
role: string
|
role: string
|
||||||
content: {
|
content: {
|
||||||
type: 'text' | 'image' | 'audio' | 'resource'
|
type: 'text' | 'image' | 'audio' | 'resource' | 'resource_link'
|
||||||
text?: string
|
text?: string
|
||||||
data?: string
|
data?: string
|
||||||
mimeType?: string
|
mimeType?: string
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user