mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix: update webSearch type and results structure in upgrade logic (#5512)
This commit is contained in:
parent
8fe44e1cd0
commit
37f09d3cb8
@ -222,7 +222,7 @@ export async function upgradeToV7(tx: Transaction): Promise<void> {
|
||||
if (oldMessage.metadata?.webSearch) {
|
||||
hasCitationData = true
|
||||
citationDataToCreate.response = {
|
||||
results: oldMessage.metadata.webSearch?.results,
|
||||
results: oldMessage.metadata.webSearch,
|
||||
source: WebSearchSource.WEBSEARCH
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ export type LegacyMessage = {
|
||||
// Zhipu or Hunyuan
|
||||
webSearchInfo?: any[]
|
||||
// Web search
|
||||
webSearch?: WebSearchResponse
|
||||
webSearch?: WebSearchProviderResponse
|
||||
// MCP Tools
|
||||
mcpTools?: MCPToolResponse[]
|
||||
// Generate Image
|
||||
|
||||
Loading…
Reference in New Issue
Block a user