Repository navigation
chore(deps): update @google/genai from 1.30.0 to 2.6.0 #4485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
557701b
116acb0
f543d3f
8a9ad98
b2d8ed1
ba68b76
4043e8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -1164,11 +1164,15 @@ export const useGeminiStream = ( | |||||||
| 'Response stopped due to malformed function call.', | ||||||||
| [FinishReason.IMAGE_SAFETY]: | ||||||||
| 'Response stopped due to image safety violations.', | ||||||||
| [FinishReason.UNEXPECTED_TOOL_CALL]: | ||||||||
| 'Response stopped due to unexpected tool call.', | ||||||||
| [FinishReason.IMAGE_PROHIBITED_CONTENT]: | ||||||||
| 'Response stopped due to image prohibited content.', | ||||||||
| [FinishReason.IMAGE_RECITATION]: | ||||||||
| 'Response stopped due to image recitation policy.', | ||||||||
| [FinishReason.IMAGE_OTHER]: | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion] The
Suggested change
— qwen3.7-max via Qwen Code /review |
||||||||
| 'Response stopped due to other image-related reasons.', | ||||||||
| [FinishReason.NO_IMAGE]: 'Response stopped due to no image.', | ||||||||
| [FinishReason.UNEXPECTED_TOOL_CALL]: | ||||||||
| 'Response stopped due to unexpected tool call.', | ||||||||
| }; | ||||||||
|
|
||||||||
| const message = finishReasonMessages[finishReason]; | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,9 +24,9 @@ | |
| ], | ||
| "dependencies": { | ||
| "@anthropic-ai/sdk": "^0.36.1", | ||
| "@google/genai": "1.30.0", | ||
| "@google/genai": "2.6.0", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion] — qwen3.7-max via Qwen Code /review |
||
| "@iarna/toml": "^2.2.5", | ||
| "@modelcontextprotocol/sdk": "^1.25.1", | ||
| "@modelcontextprotocol/sdk": "^1.25.2", | ||
| "@opentelemetry/api": "^1.9.0", | ||
| "@opentelemetry/exporter-logs-otlp-grpc": "^0.203.0", | ||
| "@opentelemetry/exporter-logs-otlp-http": "^0.203.0", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1378,11 +1378,18 @@ function mapGeminiFinishReasonToOpenAI( | |
| case FinishReason.MAX_TOKENS: | ||
| return 'length'; | ||
| case FinishReason.SAFETY: | ||
| case FinishReason.RECITATION: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion] The 6 new switch cases ( Consider adding a parameterized test: it.each([
[FinishReason.RECITATION, 'content_filter'],
[FinishReason.IMAGE_SAFETY, 'content_filter'],
[FinishReason.IMAGE_RECITATION, 'content_filter'],
[FinishReason.IMAGE_PROHIBITED_CONTENT, 'content_filter'],
[FinishReason.IMAGE_OTHER, 'content_filter'],
[FinishReason.NO_IMAGE, 'content_filter'],
])('maps %s to %s', (reason, expected) => {
// test via convertGeminiResponseToOpenAI or export mapGeminiFinishReasonToOpenAI
});— qwen3.7-max via Qwen Code /review |
||
| case FinishReason.BLOCKLIST: | ||
| case FinishReason.PROHIBITED_CONTENT: | ||
| case FinishReason.SPII: | ||
| case FinishReason.IMAGE_SAFETY: | ||
| case FinishReason.IMAGE_RECITATION: | ||
| case FinishReason.IMAGE_PROHIBITED_CONTENT: | ||
| case FinishReason.IMAGE_OTHER: | ||
| return 'content_filter'; | ||
| case FinishReason.NO_IMAGE: | ||
| return 'stop'; | ||
| default: | ||
|
InfiniteUselessness marked this conversation as resolved.
Resolved
|
||
| if (geminiReason === ('RECITATION' as FinishReason)) { | ||
| return 'content_filter'; | ||
| } | ||
| return 'stop'; | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.