Skip to content

Commit 68f8f61

Browse files
committed
docs(ai): add AI to sidebar, deprecate Vertex AI, fixup prev/next
1 parent a54b918 commit 68f8f61

6 files changed

Lines changed: 20 additions & 19 deletions

File tree

docs/ai/usage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: AI Logic
33
description: Installation and getting started with Firebase AI Logic.
44
icon: //firebase.google.com/static/images/icons/firebase-ai-logic.svg
55
next: /analytics/usage
6-
previous: /remote-config/usage
6+
previous: /contributing
77
---
88

99
# Installation

docs/analytics/usage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Analytics
33
description: Installation and getting started with Analytics.
44
icon: //firebase.google.com/static/images/products/icons/run_analytics.svg
55
next: /analytics/screen-tracking
6-
previous: /contributing
6+
previous: /ai
77
---
88

99
# Installation

docs/perf/ky-integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Performance Monitoring with KY
33
description: Monitor HTTP request performance with Firebase Performance Monitoring and KY.
44
previous: /perf/axios-integration
5+
next: /vertexai/usage
56
---
67

78
# KY

docs/sidebar.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
- 'https://invertase.canny.io/react-native-firebase'
1818
- - Contributing
1919
- 'https://github.com/invertase/react-native-firebase/blob/main/CONTRIBUTING.md'
20+
- - AI Logic
21+
- - - Usage
22+
- '/ai/usage'
23+
- '//firebase.google.com/static/images/icons/firebase-ai-logic.svg'
2024
- - Analytics
2125
- - - Usage
2226
- '/analytics/usage'

docs/vertexai/usage/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: VertexAI
33
description: Installation and getting started with VertexAI.
44
icon: //static.invertase.io/assets/social/firebase-logo.png
5-
next: /analytics/usage
6-
previous: /remote-config/usage
5+
next: /ai/usage
6+
previous: /perf/ky-integration
77
---
88

99
# Installation

packages/vertexai/README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,23 @@
2121

2222
---
2323

24-
Vertex AI is a fully-managed, unified AI development platform for building and using generative AI. Access and utilize Vertex AI Studio, Agent Builder, and 150+ foundation models including Gemini 1.5 Pro and Gemini 1.5 Flash.
24+
Vertex AI has been deprecated by Google in favor of the Firebase AI Logic SDK.
2525

26-
[> Learn More](https://firebase.google.com/docs/vertex-ai/)
26+
Using the Firebase AI Logic SDK with the Vertex AI Gemini API is still generally available (GA).
2727

28-
## Installation
28+
To start using the new SDK, import the `@react-native-firebase/ai` package and use the modular method `getAI()` to initialize. See details in the [migration guide](https://f
29+
irebase.google.com/docs/vertex-ai/migrate-to-latest-sdk).
2930

30-
Requires `@react-native-firebase/app` to be installed.
31+
```javascript
32+
// BEFORE - using firebase/vertexai
33+
import { initializeApp } from "firebase/app";
34+
import { getVertexAI, getGenerativeModel } from "firebase/vertexai"; // Remove this
3135

32-
```bash
33-
yarn add @react-native-firebase/vertexai
36+
// AFTER - using firebase/ai
37+
import { initializeApp } from "firebase/app";
38+
import { getAI, getGenerativeModel } from "firebase/ai"; // Add this
3439
```
3540

36-
## Documentation
37-
38-
- [Quick Start](https://rnfirebase.io/vertexai/usage)
39-
- [Reference](https://rnfirebase.io/reference/vertexai)
40-
41-
## License
42-
43-
- See [LICENSE](/LICENSE)
44-
4541
---
4642

4743
<p>

0 commit comments

Comments
 (0)