Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tricky-geese-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@firebase/vertexai': patch
---

Label `GroundingAttribution` as deprecated.
4 changes: 2 additions & 2 deletions common/api-review/vertexai.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export function getImagenModel(vertexAI: VertexAI, modelParams: ImagenModelParam
// @public
export function getVertexAI(app?: FirebaseApp, options?: VertexAIOptions): VertexAI;

// @public (undocumented)
// @public @deprecated (undocumented)
export interface GroundingAttribution {
// (undocumented)
confidenceScore?: number;
Expand All @@ -366,7 +366,7 @@ export interface GroundingAttribution {

// @public
export interface GroundingMetadata {
// (undocumented)
// @deprecated (undocumented)
groundingAttributions: GroundingAttribution[];
// (undocumented)
retrievalQueries?: string[];
Expand Down
3 changes: 3 additions & 0 deletions docs-devsite/vertexai.groundingattribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}

# GroundingAttribution interface
> Warning: This API is now obsolete.
>
>

<b>Signature:</b>

Expand Down
4 changes: 4 additions & 0 deletions docs-devsite/vertexai.groundingmetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export interface GroundingMetadata

## GroundingMetadata.groundingAttributions

> Warning: This API is now obsolete.
>
>

<b>Signature:</b>

```typescript
Expand Down
4 changes: 4 additions & 0 deletions packages/vertexai/src/types/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,14 @@ export interface Citation {
export interface GroundingMetadata {
webSearchQueries?: string[];
retrievalQueries?: string[];
/**
* @deprecated
*/
groundingAttributions: GroundingAttribution[];
}

/**
* @deprecated
* @public
*/
export interface GroundingAttribution {
Expand Down
Loading