Skip to content

[how-to-deploy-gemini-powered-chat-app-cloud-run]: deprecated gemini model included #1881

@shangyilim

Description

@shangyilim

in step 6, https://codelabs.developers.google.com/codelabs/how-to-deploy-gemini-powered-chat-app-cloud-run?hl=en#5 app.js uses

generativeModel = vertex_ai.getGenerativeModel({
        model: "gemini-1.0-pro-001"
    });

Which causes error {"error":{"code":404,"message":"Publisher Modelprojects/empty-proj/locations/us-central1/publishers/google/models/gemini-1.0-pro-001 was not found or your project does not have access to it. Please ensure you are using a valid model version. For more information, see: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions","status":"NOT_FOUND"}}

This should be changed to a model that wont cause errors e.g. gemini-2.5-flash

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions