Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kamillitman
Copy link
Contributor

No description provided.


//The URL requires GOOGLE_REGION and GOOGLE_PROJECT_ID env variables defined to work.
//If not set GOOGLE_REGION will default to 'us-central1' but GOOGLE_PROJECT_ID needs to be defined.
let vertex_url = format!(
"{}/{}:streamGenerateContent?alt=sse",
&*GOOGLE_VERTEX_API_URL,
self.as_str()
);

let vertex_url_fine_tuned = format!(
"{}/{}:generateContent",
&*GOOGLE_VERTEX_ENDPOINT_API_URL,
self.as_str()
);

match (self, version) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of this code we were still using the Vertex env vars even if they are never needed.

@kamillitman kamillitman requested a review from nefernata July 10, 2025 20:40
Copy link
Contributor

@nefernata nefernata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏄

@kamillitman kamillitman merged commit 24c2a34 into main Jul 10, 2025
1 check passed
@kamillitman kamillitman deleted the google-env-vars-separation-part-2 branch July 10, 2025 21:02
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

Successfully merging this pull request may close these issues.

2 participants