-
Notifications
You must be signed in to change notification settings - Fork 13
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
Offer Vertex-AI as a provider #706
Comments
We'd like this feature. |
We'll add support for this by end of the week! |
@Foxicution: @anish-palakurthi has got a prototype of this working (in the playground and runtime)! We should be pushing out the PR and merging soon! To ensure we support what you need, how do you currently do authentication for vertex-ai? |
Currently we use the import vertexai
vertexai.init(project="***", location="***")
model = vertexai.generative_models.GenerativeModel("***")
generation_config = {
"max_output_tokens": 8192,
"temperature": 1,
"top_p": 0.95,
}
safety_settings = {
vertexai.preview.generative_models.HarmCategory.HARM_CATEGORY_HATE_SPEECH: vertexai.preview.generative_models.HarmBlockThreshold.BLOCK_ONLY_HIGH,
vertexai.preview.generative_models.HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: vertexai.preview.generative_models.HarmBlockThreshold.BLOCK_ONLY_HIGH,
vertexai.preview.generative_models.HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: vertexai.preview.generative_models.HarmBlockThreshold.BLOCK_ONLY_HIGH,
vertexai.preview.generative_models.HarmCategory.HARM_CATEGORY_HARASSMENT: vertexai.preview.generative_models.HarmBlockThreshold.BLOCK_ONLY_HIGH,
}
responses = mode.generate_content(["message"], generation_config=generation_config, safety_settings=safety_settings) |
We'll confirm and ensure it works! |
@Foxicution Here is a sample BAML client with your configuration:
|
Read through the docs, looks good I think. Will try it out. |
Vertex-ai is another commonly offered interface for speaking to LLMs on-top of gemini directly. It has issues in the way we get the authorization token (needs to be refreshed frequently w/ oauth). We can support this if many people require it.
The text was updated successfully, but these errors were encountered: