-
Notifications
You must be signed in to change notification settings - Fork 928
feat(vertexai): Gemini multimodal output #8922
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 7 commits
1d58a06
172bc4b
755d28b
f0fbe8b
2d498c2
fea4dda
b898f35
de07f12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'firebase': minor | ||
'@firebase/vertexai': minor | ||
--- | ||
|
||
Add support for Gemini multimodal output |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,3 +240,29 @@ export enum Modality { | |
*/ | ||
DOCUMENT = 'DOCUMENT' | ||
} | ||
|
||
/** | ||
* Generation modalities to be returned in generation responses. | ||
* | ||
* @beta | ||
*/ | ||
export const ResponseModality = { | ||
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 is the code object we agreed we should be exporting instead of TS enums so I get that, but we've had build issues in the past mixing JS code in types files so we should probably put these in a separate file. Looks like it's not causing build issues now so maybe we can move it along with the others whenever we plan to convert all our enums to JS objects. |
||
/** | ||
* Text. | ||
* @beta | ||
*/ | ||
TEXT: 'TEXT', | ||
/** | ||
* Image. | ||
* @beta | ||
*/ | ||
IMAGE: 'IMAGE' | ||
} as const; | ||
|
||
/** | ||
* Generation modalities to be returned in generation responses. | ||
* | ||
* @beta | ||
*/ | ||
export type ResponseModality = | ||
(typeof ResponseModality)[keyof typeof ResponseModality]; |
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.