Skip to content

Conversation

@FallenDeity
Copy link

@FallenDeity FallenDeity commented Aug 24, 2025

As mentioned in #140 migrated to new google-genai SDK and now using the gemini-2.5-flash model, also updated test cases to mock the new genai sdk

Copilot AI review requested due to automatic review settings August 24, 2025 09:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates from the legacy google.generativeai package to the new unified google-genai SDK and updates the default Gemini model from gemini-2.0-flash-exp to gemini-2.5-flash. The changes modernize the Google Gemini integration to use the latest SDK patterns while maintaining backward compatibility.

Key Changes:

  • Migration from google.generativeai to google-genai SDK with new client initialization and API patterns
  • Update default Gemini model to gemini-2.5-flash
  • Comprehensive test updates to mock the new SDK structure and API calls

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
tools/llm_api.py Updates import statements, client creation, and query implementation to use new genai SDK patterns with proper type hints
tests/test_llm_api.py Updates test mocks and assertions to work with the new genai.Client API structure and file upload methods

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