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

Update import paths of google genai modules to fix pyright errors #174

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

liwii
Copy link
Contributor

@liwii liwii commented Feb 6, 2025

As pointed out by #173 (comment), current src/langcheck/metrics/eval_clients/_gemini.py does not pass pyright checks with the latest google-generativeai==0.8.4.

This is because py.typed is added to the library form this version. Nothing has changed behavior-wise.
Ref: google-gemini/generative-ai-python#509

Updated the import paths and confirmed that the behavior of GeminiEvalCilent does not change with both google-generativeai==0.8.3 and google-generativeai==0.8.4.

@liwii liwii mentioned this pull request Feb 6, 2025
@liwii liwii requested a review from yosukehigashi February 6, 2025 02:24
Copy link
Contributor

@yosukehigashi yosukehigashi left a comment

Choose a reason for hiding this comment

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

Code changes LGTM! It looks like the pytest job has been stuck for a while now https://github.com/citadel-ai/langcheck/actions/runs/13171614215/job/36762893285?pr=174 🤔

@liwii
Copy link
Contributor Author

liwii commented Feb 7, 2025

Turned out we needed to change some settings!
I also updated a path in the pytest patch, now everything looks fine!!

@liwii liwii merged commit e627bab into main Feb 7, 2025
32 checks passed
@liwii liwii deleted the gemini-typing branch February 7, 2025 02:32
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