Skip to content

Commit 906b4fa

Browse files
committed
Respond to comments
1 parent 5e021c7 commit 906b4fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.changeset/light-cheetahs-arrive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@firebase/vertexai-preview': patch
33
---
44

5-
Add a new VertexAI error type
5+
Add a publicly exported `VertexAIError` class.

packages/vertexai/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export { ChatSession } from './methods/chat-session';
3333

3434
export { GenerativeModel };
3535

36-
export { VertexAIError } from './errors';
36+
export { VertexAIError };
3737

3838
declare module '@firebase/component' {
3939
interface NameServiceMapping {

packages/vertexai/src/types/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface CustomErrorData {
5151
statusText?: string;
5252

5353
/** Response from a {@link GenerateContentRequest} */
54-
generateContentResponse?: GenerateContentResponse;
54+
response?: GenerateContentResponse;
5555

5656
/** Optional additional details about the error. */
5757
errorDetails?: ErrorDetails[];

0 commit comments

Comments
 (0)