You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instrument the Vertex AI text completion endpoints:
importvertexaifromvertexai.generative_modelsimportGenerativeModel# TODO(developer): Update and un-comment below line# project_id = "PROJECT_ID"vertexai.init(project=project_id, location="us-central1")
model=GenerativeModel(model_name="gemini-1.5-flash-001")
response=model.generate_content(
"What's a good name for a flower shop that specializes in selling bouquets of dried flowers?"
)
print(response.text)
Instrument the Vertex AI text completion endpoints:
https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal
The text was updated successfully, but these errors were encountered: