From 66965051f61c0f57164912bac6cfe14f85c0d733 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Mon, 19 Aug 2024 11:16:35 -0400 Subject: [PATCH 1/3] Update `main` branch README for PaLM API decommissioning --- README.md | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/README.md b/README.md index 89565e64..8b32e413 100644 --- a/README.md +++ b/README.md @@ -98,31 +98,7 @@ See [Contributing](https://github.com/google/generative-ai-swift/blob/main/docs/CONTRIBUTING.md) for more information on contributing to the Google AI SDK for Swift. -## Developers who use the PaLM SDK for Swift (Deprecated) - -> [!IMPORTANT] The PaLM API is deprecated for use with Google AI services and -> tools (but *not* for Vertex AI). Learn more about this deprecation, its -> timeline, and how to migrate to use Gemini in the -> [PaLM API deprecation guide](http://ai.google.dev/palm_docs/deprecation). - -​​If you're using the PaLM SDK for Swift, review the information below to -continue using the **deprecated** PaLM SDK until you've migrated to the new -version that allows you to use Gemini. - -- To continue using PaLM models, make sure your app depends on version - [`0.3.0`](https://github.com/google/generative-ai-swift/releases/tag/0.3.0) - *up to* the next minor version - ([`0.4.0`](https://github.com/google/generative-ai-swift/releases/tag/0.4.0)) - of `generative-ai-swift`. - -- When you're ready to use Gemini models, migrate your code to the Gemini API - and update your app's `generative-ai-swift` dependency to version `0.4.0` or - higher. - -To see the PaLM documentation and code, go to the -[`palm` branch](https://github.com/google/generative-ai-swift/tree/palm). - ## License The contents of this repository are licensed under the -[Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0). \ No newline at end of file +[Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0). From 0d1a4b5ca7b9ac5b7ae0978fc60cda7fc57dc707 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Tue, 20 Aug 2024 16:13:17 -0400 Subject: [PATCH 2/3] Reword PaLM decommissioning section instead of removing --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8b32e413..5df1468e 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,19 @@ See [Contributing](https://github.com/google/generative-ai-swift/blob/main/docs/CONTRIBUTING.md) for more information on contributing to the Google AI SDK for Swift. +## Developers who use the PaLM SDK for Swift (Decommissioned) + +> [!IMPORTANT] +> The PaLM API is now +> [decommissioned](https://ai.google.dev/palm_docs/deprecation). This means that +> users cannot use a PaLM model in a prompt, tune a new PaLM model, or run +> inference on PaLM-tuned models. + +​​If you're using the PaLM SDK for Swift, migrate your code to the Gemini API +and update your app's `generative-ai-swift` dependency to version `0.4.0` or +higher. For more information on migrating from PaLM to Gemini, see the +[migration guide](https://ai.google.dev/docs/migration_guide). + ## License The contents of this repository are licensed under the From 63cfec1fc5c666320bbf78043e38dbddead3e0fb Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Tue, 20 Aug 2024 16:14:55 -0400 Subject: [PATCH 3/3] Add note about Vertex AI --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5df1468e..169e582e 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,10 @@ for more information on contributing to the Google AI SDK for Swift. > [decommissioned](https://ai.google.dev/palm_docs/deprecation). This means that > users cannot use a PaLM model in a prompt, tune a new PaLM model, or run > inference on PaLM-tuned models. +> +> Note: This is different from the +> [Vertex AI PaLM API](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text), +> which is scheduled to be decommissioned in October 2024. ​​If you're using the PaLM SDK for Swift, migrate your code to the Gemini API and update your app's `generative-ai-swift` dependency to version `0.4.0` or