Skip to content

Commit 9eeb3bb

Browse files
chore: import vertex constant
1 parent 9072011 commit 9eeb3bb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/ai/lib/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import { version } from './version';
1919

2020
export const AI_TYPE = 'AI';
2121

22+
export const VERTEX_TYPE = 'vertexAI';
23+
2224
export const DEFAULT_LOCATION = 'us-central1';
2325

2426
export const DEFAULT_BASE_URL = 'https://firebasevertexai.googleapis.com';

packages/ai/lib/types/error.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import { FirebaseError } from '@firebase/util';
1919
import { GenerateContentResponse } from './responses';
20+
import { VERTEX_TYPE } from '../constants';
2021

2122
/**
2223
* Details object that may be included in an error response.

0 commit comments

Comments
 (0)