Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does generative language api support something to set location? #135

Closed
Junjie-Chu opened this issue Dec 17, 2023 · 3 comments
Closed

Does generative language api support something to set location? #135

Junjie-Chu opened this issue Dec 17, 2023 · 3 comments

Comments

@Junjie-Chu
Copy link

Junjie-Chu commented Dec 17, 2023

I find that there is a way to set the location in vertex ai:

from google.cloud import aiplatform
import vertexai
from vertexai.language_models import TextGenerationModel

project_id = "test"
location = "us-central1"

vertexai.init(project=project_id, location=location)

Is there any method to do the same thing in generative language api (this repository)?

@rabilrbl
Copy link

@Junjie-Chu
As of my knowledge you can't. It is only possible for Google cloud VertexAI users.
See the migration guide to know the difference with Google AI Studio and Vertex AI
https://cloud.google.com/vertex-ai/docs/generative-ai/migrate/migrate-google-ai#google-ai

@ishaangandhi
Copy link

How do you see what region you're using?

@MarkDaoust
Copy link
Collaborator

@ishaangandhi I think the API just does some GeoIP-lookup on the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants