fix: honor selected-provider credentials in visual and PDF agents

This commit is contained in:
amosblomqvist
2026-10-23 04:26:25 +03:00
parent 1c5024c8c2
commit 261a9b9927
3 changed files with 315 additions and 2 deletions
-1
View File
@@ -404,7 +404,6 @@ async function streamOnce(
// normalizeContext is the library's only Context→TranscriptContext entry.
const stream = engine.streamFn(engine.model, normalizeContext({ systemPrompt, messages, tools }), {
reasoning: reasoning && reasoning !== "off" ? reasoning : undefined,
apiKey: process.env.OPENROUTER_API_KEY || undefined,
signal: abortSignal,
onProviderStreamEvent: onProviderStreamEvent as never,
} as never);