feat(server): improve transcript (#13253)

fix AF-2758
fix AF-2759
This commit is contained in:
DarkSky
2025-07-17 17:20:14 +08:00
committed by GitHub
parent dc68c2385d
commit bdf1389258
5 changed files with 66 additions and 26 deletions
@@ -129,7 +129,16 @@ export abstract class GeminiProvider<T> extends CopilotProvider<T> {
system,
messages: msgs,
schema,
providerOptions: {
google: {
thinkingConfig: {
thinkingBudget: -1,
includeThoughts: false,
},
},
},
abortSignal: options.signal,
maxRetries: options.maxRetries || 3,
experimental_repairText: async ({ text, error }) => {
if (error instanceof JSONParseError) {
// strange fixed response, temporarily replace it