mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 18:39:06 +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) {
|
if (reasoningEffort === undefined) {
|
||||||
return {
|
return {
|
||||||
thinkingConfig: {
|
thinkingConfig: {
|
||||||
includeThoughts: false
|
includeThoughts: false,
|
||||||
|
thinkingBudget: 0
|
||||||
} as ThinkingConfig
|
} as ThinkingConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -921,7 +922,8 @@ export default class GeminiProvider extends BaseProvider {
|
|||||||
config = {
|
config = {
|
||||||
...config,
|
...config,
|
||||||
thinkingConfig: {
|
thinkingConfig: {
|
||||||
includeThoughts: false
|
includeThoughts: false,
|
||||||
|
thinkingBudget: 0
|
||||||
} as ThinkingConfig
|
} as ThinkingConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -593,7 +593,7 @@ export abstract class BaseOpenAIProvider extends BaseProvider {
|
|||||||
onChunk({
|
onChunk({
|
||||||
type: ChunkType.LLM_WEB_SEARCH_COMPLETE,
|
type: ChunkType.LLM_WEB_SEARCH_COMPLETE,
|
||||||
llm_web_search: {
|
llm_web_search: {
|
||||||
source: WebSearchSource.OPENAI,
|
source: WebSearchSource.OPENAI_RESPONSE,
|
||||||
results: chunk.part.annotations
|
results: chunk.part.annotations
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user