From a64c0a94bd2693ead203df64efa663b43df717b6 Mon Sep 17 00:00:00 2001 From: Jacob Cable <32874567+cabljac@users.noreply.github.com> Date: Mon, 12 Feb 2024 10:17:41 +0000 Subject: [PATCH] chore(*): update changelogs (#367) * feat(firestore-genai-chatbot): switch to string param for model * feat(*): update changelogs, add publish scripts --- firestore-genai-chatbot/CHANGELOG.md | 4 ++++ firestore-genai-chatbot/README.md | 2 +- firestore-genai-chatbot/extension.yaml | 3 ++- firestore-genai-chatbot/functions/package.json | 3 ++- firestore-multimodal-genai/CHANGELOG.md | 4 ++++ firestore-multimodal-genai/README.md | 2 +- firestore-multimodal-genai/extension.yaml | 3 ++- firestore-multimodal-genai/functions/package.json | 3 ++- 8 files changed, 18 insertions(+), 6 deletions(-) diff --git a/firestore-genai-chatbot/CHANGELOG.md b/firestore-genai-chatbot/CHANGELOG.md index 2b72f26f..0936d073 100644 --- a/firestore-genai-chatbot/CHANGELOG.md +++ b/firestore-genai-chatbot/CHANGELOG.md @@ -1,9 +1,13 @@ ## Version 0.0.6 +- Make model a string param, to allow for future changes to model names. + - Add maxOutputTokens parameter - Update documentation +- Add safety threshold params + ## Version 0.0.5 - Add Vertex AI provider diff --git a/firestore-genai-chatbot/README.md b/firestore-genai-chatbot/README.md index 5b925b30..192640e3 100644 --- a/firestore-genai-chatbot/README.md +++ b/firestore-genai-chatbot/README.md @@ -79,7 +79,7 @@ This extension uses other Firebase and Google Cloud Platform services, which hav * Google AI API Key: If you have selected Google AI as your provider, then this parameteris required. If you have instead selected Vertex AI, then this parameter is not required, and application default credentials will be used. -* Generative model: Which genai model do you want to use? For Google AI the list of supported models is [here](https://ai.google.dev/models/gemini), and this parameter should be set to the model name, the second segment of the model code (for example models/gemini-pro should be chosen as gemini-pro). For Vertex AI, there is a list of models [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models). +* Generative model: Which genai model do you want to use? For Google AI the list of supported models is [here](https://ai.google.dev/models/gemini), and this parameter should be set to the model name, the second segment of the model code (for example models/gemini-pro should be chosen as gemini-pro). For Vertex AI, there is a list of models [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models), currently only the Gemini family of models listed there is supported. * Collection Path: Path to the Firestore collection which will represent a chat with the generative model. diff --git a/firestore-genai-chatbot/extension.yaml b/firestore-genai-chatbot/extension.yaml index 2ed911e6..c7e1342e 100644 --- a/firestore-genai-chatbot/extension.yaml +++ b/firestore-genai-chatbot/extension.yaml @@ -107,7 +107,8 @@ params: should be set to the model name, the second segment of the model code (for example models/gemini-pro should be chosen as gemini-pro). For Vertex AI, there is a list of models - [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models). + [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models), + currently only the Gemini family of models listed there is supported. type: string required: true default: gemini-pro diff --git a/firestore-genai-chatbot/functions/package.json b/firestore-genai-chatbot/functions/package.json index 2ea831af..5ff39b3c 100644 --- a/firestore-genai-chatbot/functions/package.json +++ b/firestore-genai-chatbot/functions/package.json @@ -6,7 +6,8 @@ "build": "tsc -p tsconfig.build.json", "build:watch": "tsc -p tsconfig.build.json --watch", "generate-readme": "firebase ext:info .. --markdown > ../README.md", - "test": "jest --runInBand" + "test": "jest --runInBand", + "publish-from-main": "firebase ext:dev:upload googlecloud/firestore-genai-chatbot --repo=https://github.com/googlecloudplatform/firebase-extensions --root=firestore-genai-chatbot --ref=main --project pub-ext-gcloud" }, "main": "lib/index.js", "dependencies": { diff --git a/firestore-multimodal-genai/CHANGELOG.md b/firestore-multimodal-genai/CHANGELOG.md index 8ca703d0..95a95dfb 100644 --- a/firestore-multimodal-genai/CHANGELOG.md +++ b/firestore-multimodal-genai/CHANGELOG.md @@ -1,7 +1,11 @@ ## Version 0.0.4 +- Make model a string param, to allow for future changes to model names. + - Update documentation +- Add safety threshold params + ## Version 0.0.3 - Add Vertex AI provider diff --git a/firestore-multimodal-genai/README.md b/firestore-multimodal-genai/README.md index 631829fd..2688c603 100644 --- a/firestore-multimodal-genai/README.md +++ b/firestore-multimodal-genai/README.md @@ -97,7 +97,7 @@ This extension uses other Firebase and Google Cloud Platform services, which hav * Gemini API Provider: This extension makes use of the Gemini family of generative models. For Google AI you will require an API key, whereas Vertex AI will authenticate using application default credentials. For more information see the [docs](https://firebase.google.com/docs/admin/setup#initialize-sdk). -* Generative model: Which genai model do you want to use? For Google AI the list of supported models is [here](https://ai.google.dev/models/gemini), and this parameter should be set to the model name, the second segment of the model code (for example models/gemini-pro should be chosen as gemini-pro). For Vertex AI, there is a list of models [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models). +* Generative model: Which genai model do you want to use? For Google AI the list of supported models is [here](https://ai.google.dev/models/gemini), and this parameter should be set to the model name, the second segment of the model code (for example models/gemini-pro should be chosen as gemini-pro). For Vertex AI, there is a list of models [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models), currently only the Gemini family of models listed there is supported. * Google AI API Key: If you have selected Google AI as your provider, then this parameteris required. If you have instead selected Vertex AI, then this parameter is not required, and application default credentials will be used. diff --git a/firestore-multimodal-genai/extension.yaml b/firestore-multimodal-genai/extension.yaml index 8fe14022..fffb0756 100644 --- a/firestore-multimodal-genai/extension.yaml +++ b/firestore-multimodal-genai/extension.yaml @@ -103,7 +103,8 @@ params: should be set to the model name, the second segment of the model code (for example models/gemini-pro should be chosen as gemini-pro). For Vertex AI, there is a list of models - [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models). + [here](https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models), + currently only the Gemini family of models listed there is supported. type: string required: true default: gemini-pro diff --git a/firestore-multimodal-genai/functions/package.json b/firestore-multimodal-genai/functions/package.json index 61fb51d7..be7638d5 100644 --- a/firestore-multimodal-genai/functions/package.json +++ b/firestore-multimodal-genai/functions/package.json @@ -6,7 +6,8 @@ "build": "tsc -p tsconfig.build.json", "build:watch": "tsc -p tsconfig.build.json --watch", "generate-readme": "firebase ext:info .. --markdown > ../README.md", - "test": "jest --runInBand" + "test": "jest --runInBand", + "publish-from-main": "firebase ext:dev:upload googlecloud/firestore-multimodal-genai --repo=https://github.com/googlecloudplatform/firebase-extensions --root=firestore-multimodal-genai --ref=main --project pub-ext-gcloud" }, "main": "lib/index.js", "dependencies": {