Skip to content

Commit 63a0f94

Browse files
committed
Put back case to exclude reasoning in sdk
1 parent 98de096 commit 63a0f94

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sdk/src/impl/llm.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,17 @@ export async function* promptAiSdkStream(
489489
throw chunkValue.error
490490
}
491491
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+
}
492503
yield {
493504
type: 'reasoning',
494505
text: chunkValue.text,

0 commit comments

Comments
 (0)