mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +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) {
|
if (oldMessage.metadata?.webSearch) {
|
||||||
hasCitationData = true
|
hasCitationData = true
|
||||||
citationDataToCreate.response = {
|
citationDataToCreate.response = {
|
||||||
results: oldMessage.metadata.webSearch?.results,
|
results: oldMessage.metadata.webSearch,
|
||||||
source: WebSearchSource.WEBSEARCH
|
source: WebSearchSource.WEBSEARCH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ export type LegacyMessage = {
|
|||||||
// Zhipu or Hunyuan
|
// Zhipu or Hunyuan
|
||||||
webSearchInfo?: any[]
|
webSearchInfo?: any[]
|
||||||
// Web search
|
// Web search
|
||||||
webSearch?: WebSearchResponse
|
webSearch?: WebSearchProviderResponse
|
||||||
// MCP Tools
|
// MCP Tools
|
||||||
mcpTools?: MCPToolResponse[]
|
mcpTools?: MCPToolResponse[]
|
||||||
// Generate Image
|
// Generate Image
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user