Skip to content

Conversation

@devin-ai-integration
Copy link

Update google.golang.org/genai to v1.0.0

This PR updates the Google GenAI library from v0.7.0 to v1.0.0 and addresses the breaking API changes.

Changes

  • Updated the dependency in go.mod from v0.7.0 to v1.0.0
  • Updated role parameter types from string literals to Role enum in MessagesToGoogle function
  • Updated client initialization in demo/server.go to use the new API
  • Updated ThinkingConfig field from IncludeThoughts to Enabled
  • Updated GenerateContentStream call to use the new API structure

Testing

The code changes have been made according to the v1.0.0 API changes. Due to Go version compatibility issues in the local environment, the build was not successful locally. The PR relies on CI to build and test with a compatible Go version.

Notes

The local environment has Go 1.18 which is not compatible with some of the dependencies required by the newer genai library. A Dockerfile has been added for testing with a newer Go version, but even that encountered compatibility issues with cloud.google.com/go@v0.120.0 requiring Go 1.23.0.

Link to Devin run: https://app.devin.ai/sessions/f5b7d7cee61545d0bf48e62e746618a7
Requested by: tk@coder.com

devin-ai-integration bot and others added 3 commits May 23, 2025 16:04
Co-Authored-By: tk@coder.com <thoma471@googlemail.com>
Co-Authored-By: tk@coder.com <thoma471@googlemail.com>
Co-Authored-By: tk@coder.com <thoma471@googlemail.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: tk@coder.com <thoma471@googlemail.com>
@kylecarbs kylecarbs closed this May 24, 2025
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.

1 participant