mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
hotfix: openai websearch render and gemini think (#6055)
This commit is contained in:
parent
de2ca774e7
commit
451dcd0e4c
@ -287,7 +287,8 @@ export default class GeminiProvider extends BaseProvider {
|
||||
if (reasoningEffort === undefined) {
|
||||
return {
|
||||
thinkingConfig: {
|
||||
includeThoughts: false
|
||||
includeThoughts: false,
|
||||
thinkingBudget: 0
|
||||
} as ThinkingConfig
|
||||
}
|
||||
}
|
||||
@ -921,7 +922,8 @@ export default class GeminiProvider extends BaseProvider {
|
||||
config = {
|
||||
...config,
|
||||
thinkingConfig: {
|
||||
includeThoughts: false
|
||||
includeThoughts: false,
|
||||
thinkingBudget: 0
|
||||
} as ThinkingConfig
|
||||
}
|
||||
}
|
||||
|
||||
@ -593,7 +593,7 @@ export abstract class BaseOpenAIProvider extends BaseProvider {
|
||||
onChunk({
|
||||
type: ChunkType.LLM_WEB_SEARCH_COMPLETE,
|
||||
llm_web_search: {
|
||||
source: WebSearchSource.OPENAI,
|
||||
source: WebSearchSource.OPENAI_RESPONSE,
|
||||
results: chunk.part.annotations
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user