Skip to content

Commit f3deab8

Browse files
committed
be consistent with the check for Google models
1 parent c88a957 commit f3deab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/providers/openrouter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export class OpenRouterHandler extends BaseProvider implements SingleCompletionH
114114

115115
const transforms = (this.options.openRouterUseMiddleOutTransform ?? true) ? ["middle-out"] : undefined
116116

117-
const isGemini = modelId.startsWith("google/gemini")
118-
const useStreaming = isGemini ? !this.options.geminiDisableStreaming : true
117+
const isGoogle = modelId.startsWith("google/")
118+
const useStreaming = isGoogle ? !this.options.geminiDisableStreaming : true
119119

120120
// https://openrouter.ai/docs/transforms
121121
const completionParams: OpenRouterChatCompletionParams = {

0 commit comments

Comments
 (0)