Skip to content

Commit ec91a86

Browse files
authored
docs(ai): Fix 'occured' typo in error codes (#9021)
1 parent d5e5795 commit ec91a86

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs-devsite/ai.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,13 @@ export declare const enum AIErrorCode
448448
| INVALID\_CONTENT | <code>&quot;invalid-content&quot;</code> | An error associated with a Content object. |
449449
| INVALID\_SCHEMA | <code>&quot;invalid-schema&quot;</code> | An error due to invalid Schema input. |
450450
| NO\_API\_KEY | <code>&quot;no-api-key&quot;</code> | An error occurred due to a missing Firebase API key. |
451-
| NO\_APP\_ID | <code>&quot;no-app-id&quot;</code> | An error occured due to a missing Firebase app ID. |
451+
| NO\_APP\_ID | <code>&quot;no-app-id&quot;</code> | An error occurred due to a missing Firebase app ID. |
452452
| NO\_MODEL | <code>&quot;no-model&quot;</code> | An error occurred due to a model name not being specified during initialization. |
453453
| NO\_PROJECT\_ID | <code>&quot;no-project-id&quot;</code> | An error occurred due to a missing project ID. |
454454
| PARSE\_FAILED | <code>&quot;parse-failed&quot;</code> | An error occurred while parsing. |
455455
| REQUEST\_ERROR | <code>&quot;request-error&quot;</code> | An error occurred in a request. |
456456
| RESPONSE\_ERROR | <code>&quot;response-error&quot;</code> | An error occurred in a response. |
457-
| UNSUPPORTED | <code>&quot;unsupported&quot;</code> | An error occured due an attempt to use an unsupported feature. |
457+
| UNSUPPORTED | <code>&quot;unsupported&quot;</code> | An error occurred due an attempt to use an unsupported feature. |
458458

459459
## BlockReason
460460

packages/ai/src/types/error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const enum AIErrorCode {
8787
/** An error occurred due to a missing Firebase API key. */
8888
NO_API_KEY = 'no-api-key',
8989

90-
/** An error occured due to a missing Firebase app ID. */
90+
/** An error occurred due to a missing Firebase app ID. */
9191
NO_APP_ID = 'no-app-id',
9292

9393
/** An error occurred due to a model name not being specified during initialization. */
@@ -99,6 +99,6 @@ export const enum AIErrorCode {
9999
/** An error occurred while parsing. */
100100
PARSE_FAILED = 'parse-failed',
101101

102-
/** An error occured due an attempt to use an unsupported feature. */
102+
/** An error occurred due an attempt to use an unsupported feature. */
103103
UNSUPPORTED = 'unsupported'
104104
}

0 commit comments

Comments
 (0)