diff --git a/FirebaseVertexAI/CHANGELOG.md b/FirebaseVertexAI/CHANGELOG.md index 7017d26ce58..a19628f23f7 100644 --- a/FirebaseVertexAI/CHANGELOG.md +++ b/FirebaseVertexAI/CHANGELOG.md @@ -1,3 +1,10 @@ +# 10.28.0 +- [changed] Removed uses of the `gemini-1.5-flash-preview-0514` model in docs + and samples. Developers should now use the auto-updated versions, + `gemini-1.5-pro` or `gemini-1.5-flash`, or a specific stable version; see + [available model names](https://firebase.google.com/docs/vertex-ai/gemini-models#available-model-names) + for more details. (#13099) + # 10.27.0 - [changed] Removed uses of the `gemini-1.5-pro-preview-0409` model in docs and samples. Developers should now use `gemini-1.5-pro-preview-0514` or diff --git a/FirebaseVertexAI/Sample/ChatSample/ViewModels/ConversationViewModel.swift b/FirebaseVertexAI/Sample/ChatSample/ViewModels/ConversationViewModel.swift index d8020b3ac41..04d8eeea33c 100644 --- a/FirebaseVertexAI/Sample/ChatSample/ViewModels/ConversationViewModel.swift +++ b/FirebaseVertexAI/Sample/ChatSample/ViewModels/ConversationViewModel.swift @@ -36,7 +36,7 @@ class ConversationViewModel: ObservableObject { private var chatTask: Task? init() { - model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-flash-preview-0514") + model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-flash") chat = model.startChat() } diff --git a/FirebaseVertexAI/Sample/FunctionCallingSample/ViewModels/FunctionCallingViewModel.swift b/FirebaseVertexAI/Sample/FunctionCallingSample/ViewModels/FunctionCallingViewModel.swift index 3b6074b8cd5..13ad5afe23c 100644 --- a/FirebaseVertexAI/Sample/FunctionCallingSample/ViewModels/FunctionCallingViewModel.swift +++ b/FirebaseVertexAI/Sample/FunctionCallingSample/ViewModels/FunctionCallingViewModel.swift @@ -39,7 +39,7 @@ class FunctionCallingViewModel: ObservableObject { init() { model = VertexAI.vertexAI().generativeModel( - modelName: "gemini-1.5-flash-preview-0514", + modelName: "gemini-1.5-flash", tools: [Tool(functionDeclarations: [ FunctionDeclaration( name: "get_exchange_rate", diff --git a/FirebaseVertexAI/Sample/GenerativeAIMultimodalSample/ViewModels/PhotoReasoningViewModel.swift b/FirebaseVertexAI/Sample/GenerativeAIMultimodalSample/ViewModels/PhotoReasoningViewModel.swift index ec0f3a7c6b3..d937b92f716 100644 --- a/FirebaseVertexAI/Sample/GenerativeAIMultimodalSample/ViewModels/PhotoReasoningViewModel.swift +++ b/FirebaseVertexAI/Sample/GenerativeAIMultimodalSample/ViewModels/PhotoReasoningViewModel.swift @@ -44,7 +44,7 @@ class PhotoReasoningViewModel: ObservableObject { private var model: GenerativeModel? init() { - model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-flash-preview-0514") + model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-flash") } func reason() async { diff --git a/FirebaseVertexAI/Sample/GenerativeAITextSample/ViewModels/SummarizeViewModel.swift b/FirebaseVertexAI/Sample/GenerativeAITextSample/ViewModels/SummarizeViewModel.swift index 77e815ea77d..8b08ec71682 100644 --- a/FirebaseVertexAI/Sample/GenerativeAITextSample/ViewModels/SummarizeViewModel.swift +++ b/FirebaseVertexAI/Sample/GenerativeAITextSample/ViewModels/SummarizeViewModel.swift @@ -32,7 +32,7 @@ class SummarizeViewModel: ObservableObject { private var model: GenerativeModel? init() { - model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-flash-preview-0514") + model = VertexAI.vertexAI().generativeModel(modelName: "gemini-1.5-flash") } func summarize(inputText: String) async { diff --git a/FirebaseVertexAI/Sources/VertexAI.swift b/FirebaseVertexAI/Sources/VertexAI.swift index 2017ea04b5f..a8b7caaacfd 100644 --- a/FirebaseVertexAI/Sources/VertexAI.swift +++ b/FirebaseVertexAI/Sources/VertexAI.swift @@ -64,8 +64,8 @@ public class VertexAI: NSObject { /// guidance on choosing an appropriate model for your use case. /// /// - Parameters: - /// - modelName: The name of the model to use, for example `"gemini-1.5-flash-preview-0514"`; - /// see [available model names + /// - modelName: The name of the model to use, for example `"gemini-1.5-flash"`; see + /// [available model names /// ](https://firebase.google.com/docs/vertex-ai/gemini-models#available-model-names) for a /// list of supported model names. /// - generationConfig: The content generation parameters your model should use.