Skip to content

Commit dc2efe7

Browse files
committed
Update API reports
1 parent e12d91f commit dc2efe7

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

common/api-review/vertexai-preview.api.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import { AppCheckTokenResult } from '@firebase/app-check-interop-types';
88
import { FirebaseApp } from '@firebase/app';
9+
import { FirebaseAuthTokenData } from '@firebase/auth-interop-types';
910

1011
// @public
1112
export interface BaseParams {
@@ -101,6 +102,28 @@ export interface EnhancedGenerateContentResponse extends GenerateContentResponse
101102
text: () => string;
102103
}
103104

105+
// @public
106+
export interface FileData {
107+
// (undocumented)
108+
fileUri: string;
109+
// (undocumented)
110+
mimeType: string;
111+
}
112+
113+
// @public
114+
export interface FileDataPart {
115+
// (undocumented)
116+
fileData: FileData;
117+
// (undocumented)
118+
functionCall?: never;
119+
// (undocumented)
120+
functionResponse?: never;
121+
// (undocumented)
122+
inlineData?: never;
123+
// (undocumented)
124+
text?: never;
125+
}
126+
104127
// @public
105128
export enum FinishReason {
106129
// (undocumented)
@@ -332,7 +355,7 @@ export class GenerativeModel {
332355
export function getGenerativeModel(vertexAI: VertexAI, modelParams: ModelParams, requestOptions?: RequestOptions): GenerativeModel;
333356

334357
// @public
335-
export function getVertexAI(app?: FirebaseApp): VertexAI;
358+
export function getVertexAI(app?: FirebaseApp, options?: VertexAIOptions): VertexAI;
336359

337360
// @public (undocumented)
338361
export interface GroundingAttribution {
@@ -448,7 +471,7 @@ export interface ModelParams extends BaseParams {
448471
}
449472

450473
// @public
451-
export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart;
474+
export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart;
452475

453476
// @public
454477
export const POSSIBLE_ROLES: readonly ["user", "model", "function", "system"];
@@ -566,6 +589,12 @@ export interface VertexAI {
566589
location: string;
567590
}
568591

592+
// @public
593+
export interface VertexAIOptions {
594+
// (undocumented)
595+
location?: string;
596+
}
597+
569598
// @public
570599
export interface VideoMetadata {
571600
endOffset: string;

0 commit comments

Comments
 (0)