We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98de096 commit 63a0f94Copy full SHA for 63a0f94
1 file changed
sdk/src/impl/llm.ts
@@ -489,6 +489,17 @@ export async function* promptAiSdkStream(
489
throw chunkValue.error
490
}
491
if (chunkValue.type === 'reasoning-delta') {
492
+ for (const provider of ['openrouter', 'codebuff'] as const) {
493
+ if (
494
+ (
495
+ params.providerOptions?.[provider] as
496
+ | OpenRouterProviderOptions
497
+ | undefined
498
+ )?.reasoning?.exclude
499
+ ) {
500
+ continue
501
+ }
502
503
yield {
504
type: 'reasoning',
505
text: chunkValue.text,
0 commit comments