hotfix: openai websearch render and gemini think (#6055)

This commit is contained in:
SuYao
2025-05-16 20:42:59 +08:00
committed by GitHub
parent de2ca774e7
commit 451dcd0e4c
2 changed files with 5 additions and 3 deletions
@@ -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
}
})