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

Support for @Tools with Gemini? #1126

Open
waloeen opened this issue Dec 2, 2024 · 7 comments · May be fixed by #1169
Open

Support for @Tools with Gemini? #1126

waloeen opened this issue Dec 2, 2024 · 7 comments · May be fixed by #1169
Labels
area/model enhancement New feature or request

Comments

@waloeen
Copy link

waloeen commented Dec 2, 2024

I tried using @Tools with quarkus.langchain4j.vertexai.gemini.chat-model.chat-model.model-id=gemini-pro, but got the error message Tools are currently not supported by this model.

It seems like Gemini does support Tools: https://docs.langchain4j.dev/integrations/language-models
Also: #534

Are there any plans on implementing support for it?

@geoand
Copy link
Collaborator

geoand commented Dec 2, 2024

Thanks for reporting!

It should be relatively straighforward to do this!

@sberyozkin I wonder if you are interested

@geoand geoand added area/model enhancement New feature or request labels Dec 2, 2024
@sberyozkin
Copy link
Contributor

@geoand Yes, I am, as we'd like to show tools with Gemini :-), can you please link me to the code showing how it is done for one of the other models ?

@geoand
Copy link
Collaborator

geoand commented Dec 3, 2024

Cool!

See this and this

@sberyozkin
Copy link
Contributor

Thanks @geoand

@waloeen
Copy link
Author

waloeen commented Dec 5, 2024

Thanks!
Looking forward to try this.

@sberyozkin
Copy link
Contributor

Hi @waloeen @geoand I'll look at it asap, getting a bit stressed in the Quarkus space, but I'm on it, thanks

@geoand
Copy link
Collaborator

geoand commented Dec 11, 2024

No rush, thanks @sberyozkin!

@sberyozkin sberyozkin linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/model enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants