Skip to content

Commit 87a1b72

Browse files
committed
refdocs
1 parent 880d331 commit 87a1b72

File tree

6 files changed

+10
-19
lines changed

6 files changed

+10
-19
lines changed

common/api-review/vertexai.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ export enum HarmSeverity {
501501
HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
502502
HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
503503
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE",
504-
HARM_SEVERITY_UNSUPPORTED = "HARM_SEVERITY_UNSPECIFIED"
504+
HARM_SEVERITY_UNSUPPORTED = "HARM_SEVERITY_UNSUPPORTED"
505505
}
506506

507507
// @beta

docs-devsite/_toc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ toc:
520520
path: /docs/reference/js/vertexai.genai.md
521521
- title: GenAIError
522522
path: /docs/reference/js/vertexai.genaierror.md
523+
- title: GenAIModel
524+
path: /docs/reference/js/vertexai.genaimodel.md
523525
- title: GenAIOptions
524526
path: /docs/reference/js/vertexai.genaioptions.md
525527
- title: GenerateContentCandidate
@@ -604,8 +606,6 @@ toc:
604606
path: /docs/reference/js/vertexai.toolconfig.md
605607
- title: UsageMetadata
606608
path: /docs/reference/js/vertexai.usagemetadata.md
607-
- title: VertexAIModel
608-
path: /docs/reference/js/vertexai.vertexaimodel.md
609609
- title: VertexAIOptions
610610
path: /docs/reference/js/vertexai.vertexaioptions.md
611611
- title: VideoMetadata
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ overwritten. Changes should be made in the source code at
99
https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

12-
# VertexAIModel class
12+
# GenAIModel class
1313
Base class for Vertex AI in Firebase model APIs.
1414

1515
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `GenAIModel` class.
@@ -24,9 +24,9 @@ export declare abstract class GenAIModel
2424

2525
| Property | Modifiers | Type | Description |
2626
| --- | --- | --- | --- |
27-
| [model](./vertexai.vertexaimodel.md#vertexaimodelmodel) | | string | The fully qualified model resource name to use for generating images (for example, <code>publishers/google/models/imagen-3.0-generate-002</code>). |
27+
| [model](./vertexai.genaimodel.md#genaimodelmodel) | | string | The fully qualified model resource name to use for generating images (for example, <code>publishers/google/models/imagen-3.0-generate-002</code>). |
2828

29-
## VertexAIModel.model
29+
## GenAIModel.model
3030

3131
The fully qualified model resource name to use for generating images (for example, `publishers/google/models/imagen-3.0-generate-002`<!-- -->).
3232

docs-devsite/vertexai.generativemodel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Class for generative model APIs.
1717
```typescript
1818
export declare class GenerativeModel extends GenAIModel
1919
```
20-
<b>Extends:</b> GenAIModel
20+
<b>Extends:</b> [GenAIModel](./vertexai.genaimodel.md#genaimodel_class)
2121
2222
## Constructors
2323

docs-devsite/vertexai.imagenmodel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This class provides methods for generating images using the Imagen model.
2222
```typescript
2323
export declare class ImagenModel extends GenAIModel
2424
```
25-
<b>Extends:</b> GenAIModel
25+
<b>Extends:</b> [GenAIModel](./vertexai.genaimodel.md#genaimodel_class)
2626
2727
## Constructors
2828

docs-devsite/vertexai.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The Vertex AI in Firebase Web SDK.
3535
| [BooleanSchema](./vertexai.booleanschema.md#booleanschema_class) | Schema class for "boolean" types. |
3636
| [ChatSession](./vertexai.chatsession.md#chatsession_class) | ChatSession class that enables sending chat messages and stores history of sent and received messages so far. |
3737
| [GenAIError](./vertexai.genaierror.md#genaierror_class) | Error class for the Vertex AI in Firebase SDK. |
38+
| [GenAIModel](./vertexai.genaimodel.md#genaimodel_class) | Base class for Vertex AI in Firebase model APIs. |
3839
| [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class) | Class for generative model APIs. |
3940
| [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class) | <b><i>(Public Preview)</i></b> Defines the image format for images generated by Imagen.<!-- -->Use this class to specify the desired format (JPEG or PNG) and compression quality for images generated by Imagen. This is typically included as part of <code>[ImagenModelParams](./vertexai.imagenmodelparams.md#imagenmodelparams_interface)</code>. |
4041
| [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class) | <b><i>(Public Preview)</i></b> Class for Imagen model APIs.<!-- -->This class provides methods for generating images using the Imagen model. |
@@ -43,7 +44,6 @@ The Vertex AI in Firebase Web SDK.
4344
| [ObjectSchema](./vertexai.objectschema.md#objectschema_class) | Schema class for "object" types. The <code>properties</code> param must be a map of <code>Schema</code> objects. |
4445
| [Schema](./vertexai.schema.md#schema_class) | Parent class encompassing all Schema types, with static methods that allow building specific Schema types. This class can be converted with <code>JSON.stringify()</code> into a JSON string accepted by Vertex AI REST endpoints. (This string conversion is automatically done when calling SDK methods.) |
4546
| [StringSchema](./vertexai.stringschema.md#stringschema_class) | Schema class for "string" types. Can be used with or without enum values. |
46-
| [VertexAIModel](./vertexai.vertexaimodel.md#vertexaimodel_class) | Base class for Vertex AI in Firebase model APIs. |
4747

4848
## Enumerations
4949

@@ -147,7 +147,6 @@ The Vertex AI in Firebase Web SDK.
147147
| [TypedSchema](./vertexai.md#typedschema) | A type that includes all specific Schema types. |
148148
| [VertexAI](./vertexai.md#vertexai) | |
149149
| [VertexAIBackend](./vertexai.md#vertexaibackend) | |
150-
| [VertexAIErrorCode](./vertexai.md#vertexaierrorcode) | |
151150

152151
## function(app, ...)
153152

@@ -395,14 +394,6 @@ export type VertexAIBackend = {
395394
};
396395
```
397396

398-
## VertexAIErrorCode
399-
400-
<b>Signature:</b>
401-
402-
```typescript
403-
export type VertexAIErrorCode = GenAIErrorCode;
404-
```
405-
406397
## BlockReason
407398

408399
Reason that a prompt was blocked.
@@ -582,7 +573,7 @@ export declare enum HarmSeverity
582573
| HARM\_SEVERITY\_LOW | <code>&quot;HARM_SEVERITY_LOW&quot;</code> | Low level of harm severity. |
583574
| HARM\_SEVERITY\_MEDIUM | <code>&quot;HARM_SEVERITY_MEDIUM&quot;</code> | Medium level of harm severity. |
584575
| HARM\_SEVERITY\_NEGLIGIBLE | <code>&quot;HARM_SEVERITY_NEGLIGIBLE&quot;</code> | Negligible level of harm severity. |
585-
| HARM\_SEVERITY\_UNSPECIFIED | <code>&quot;HARM_SEVERITY_UNSPECIFIED&quot;</code> | Unspecified level of harm severity. |
576+
| HARM\_SEVERITY\_UNSUPPORTED | <code>&quot;HARM_SEVERITY_UNSUPPORTED&quot;</code> | Harm severity is not supported. The GoogleAI backend does not support <code>HarmSeverity</code>, so this value is used as a fallback. |
586577

587578
## ImagenAspectRatio
588579

0 commit comments

Comments
 (0)