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

feat: support gemini llm in google plugin #1382

Merged
merged 25 commits into from
Jan 20, 2025
Merged

feat: support gemini llm in google plugin #1382

merged 25 commits into from
Jan 20, 2025

Conversation

jayeshp19
Copy link
Collaborator

No description provided.

Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: b55fffa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-plugins-google Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jayeshp19 jayeshp19 requested a review from a team January 16, 2025 17:48
@jayeshp19 jayeshp19 marked this pull request as ready for review January 16, 2025 17:50
mypy.ini Outdated
[mypy]

[mypy-google.genai.*]
ignore_missing_imports = True
Copy link
Member

@theomonnom theomonnom Jan 18, 2025

Choose a reason for hiding this comment

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

I guess this is just ignoring the types too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, we might just have to wait till their sdk add py.typed

Copy link
Member

@theomonnom theomonnom Jan 19, 2025

Choose a reason for hiding this comment

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

What I mean is that we don't have to necessarily wait
https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Screenshot 2025-01-19 at 1 09 48 PM

Copy link
Member

Choose a reason for hiding this comment

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

I don't think their package is fully typed according to the last CI run: https://github.com/livekit/agents/actions/runs/12853743478/job/35837266341?pr=1382

While it's worth trying.. my 2c is to focus our typing exercise in our own code.. vs being concerned about how third party libs are being typed

Copy link
Member

@theomonnom theomonnom Jan 20, 2025

Choose a reason for hiding this comment

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

Checking the errors inside the above CI, the types errors seems related to our code, not their code tho

Copy link
Member

Choose a reason for hiding this comment

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

ah my bad.. I misread the package as coming from them.. agreed we should fix our types.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@theomonnom I've updated code to fix types, is this ready to merge?

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

lg

@@ -19,6 +19,7 @@
"watchfiles",
"anthropic",
"websockets.client",
"root",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"root",

we can't do that

Copy link
Member

@theomonnom theomonnom Jan 20, 2025

Choose a reason for hiding this comment

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

root is the parent of all loggers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah my bad. I will remove in next pr (gemini transcriber)

@jayeshp19 jayeshp19 merged commit 58c54a7 into main Jan 20, 2025
14 checks passed
@jayeshp19 jayeshp19 deleted the google-genai branch January 20, 2025 13:03
This was referenced Jan 20, 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.

3 participants