-
Notifications
You must be signed in to change notification settings - Fork 13.5k
feat(core, cli): Bump genai version to 1.30.0 #13435
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
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 |
|---|---|---|
|
|
@@ -634,6 +634,9 @@ export const useGeminiStream = ( | |
| '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 prohibited content.', | ||
| [FinishReason.NO_IMAGE]: 'Response stopped due to no image.', | ||
|
Contributor
Author
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. New finish reasons. |
||
| }; | ||
|
|
||
| const message = finishReasonMessages[finishReason]; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,11 +21,6 @@ describe('PromptRegistry', () => { | |
| const prompt1: DiscoveredMCPPrompt = { | ||
| name: 'prompt1', | ||
| serverName: 'server1', | ||
| tool: { | ||
| name: 'prompt1', | ||
| description: 'Prompt 1', | ||
| inputSchema: {}, | ||
| }, | ||
|
Contributor
Author
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. This property was removed from the |
||
| invoke: async () => ({ | ||
| messages: [ | ||
| { role: 'assistant', content: { type: 'text', text: 'response1' } }, | ||
|
|
@@ -36,11 +31,6 @@ describe('PromptRegistry', () => { | |
| const prompt2: DiscoveredMCPPrompt = { | ||
| name: 'prompt2', | ||
| serverName: 'server1', | ||
| tool: { | ||
| name: 'prompt2', | ||
| description: 'Prompt 2', | ||
| inputSchema: {}, | ||
| }, | ||
| invoke: async () => ({ | ||
| messages: [ | ||
| { role: 'assistant', content: { type: 'text', text: 'response2' } }, | ||
|
|
@@ -51,11 +41,6 @@ describe('PromptRegistry', () => { | |
| const prompt3: DiscoveredMCPPrompt = { | ||
| name: 'prompt1', | ||
| serverName: 'server2', | ||
| tool: { | ||
| name: 'prompt1', | ||
| description: 'Prompt 3', | ||
| inputSchema: {}, | ||
| }, | ||
| invoke: async () => ({ | ||
| messages: [ | ||
| { role: 'assistant', content: { type: 'text', text: 'response3' } }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This MCP type seems to have changed, and now a
typefield is provided.