Skip to content

Commit c2803e9

Browse files
committed
Initial prototype
1 parent 51465ce commit c2803e9

File tree

24 files changed

+1233
-46
lines changed

24 files changed

+1233
-46
lines changed

common/api-review/vertexai.api.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ export enum HarmSeverity {
413413
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH",
414414
HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
415415
HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
416-
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE"
416+
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE",
417+
HARM_SEVERITY_UNSPECIFIED = "HARM_SEVERITY_UNSPECIFIED"
417418
}
418419

419420
// @beta
@@ -627,7 +628,6 @@ export interface SafetyRating {
627628
export interface SafetySetting {
628629
// (undocumented)
629630
category: HarmCategory;
630-
// (undocumented)
631631
method?: HarmBlockMethod;
632632
// (undocumented)
633633
threshold: HarmBlockThreshold;
@@ -782,6 +782,8 @@ export interface UsageMetadata {
782782
export interface VertexAI {
783783
app: FirebaseApp;
784784
// (undocumented)
785+
developerAPIEnabled: boolean;
786+
// (undocumented)
785787
location: string;
786788
}
787789

@@ -806,7 +808,8 @@ export const enum VertexAIErrorCode {
806808
NO_PROJECT_ID = "no-project-id",
807809
PARSE_FAILED = "parse-failed",
808810
REQUEST_ERROR = "request-error",
809-
RESPONSE_ERROR = "response-error"
811+
RESPONSE_ERROR = "response-error",
812+
UNSUPPORTED = "unsupported"
810813
}
811814

812815
// @public
@@ -816,11 +819,14 @@ export abstract class VertexAIModel {
816819
// @internal (undocumented)
817820
protected _apiSettings: ApiSettings;
818821
readonly model: string;
819-
static normalizeModelName(modelName: string): string;
820-
}
822+
// @internal (undocumented)
823+
static normalizeModelName(modelName: string, developerAPIEnabled?: boolean): string;
824+
}
821825

822826
// @public
823827
export interface VertexAIOptions {
828+
// (undocumented)
829+
developerAPIEnabled: boolean;
824830
// (undocumented)
825831
location?: string;
826832
}

0 commit comments

Comments
 (0)