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

Add Gemini API Support #230

Open
evgenyigumnov opened this issue Sep 27, 2024 · 5 comments
Open

Add Gemini API Support #230

evgenyigumnov opened this issue Sep 27, 2024 · 5 comments
Labels
good first issue Good for newcomers

Comments

@evgenyigumnov
Copy link

Description:

We need to integrate the Gemini API into our application. Google Gemini API offers free usage with rate limits, making it an attractive option for enhancing our service's capabilities. The API should be used to expand our existing functionality, while ensuring that we respect the rate limits imposed by the API to avoid any disruptions or excessive throttling.

Additional Info:

@prabirshrestha prabirshrestha added the good first issue Good for newcomers label Sep 28, 2024
@prabirshrestha
Copy link
Collaborator

Would you be interested in contribution?

@evgenyigumnov
Copy link
Author

evgenyigumnov commented Sep 29, 2024

  1. We plan to add langchain-rust to https://github.com/evgenyigumnov/rustsn
  2. I do not know langchain-rust code base and for me more easely add Gemini API directly to Rustsn without langchain-rust

Conclusion: Could any body other implement Gemeini API in langchain project?

@mdabir1203
Copy link

I would like to take this issue and contribute to it. May I know in which part of the codebase have you implemented the api connection ?

@prabirshrestha
Copy link
Collaborator

Suggest looking in this folder. https://github.com/Abraxas-365/langchain-rust/tree/main/src/llm

@prabirshrestha
Copy link
Collaborator

Gemini is now OpenAI compatible which means you can use existing OpenAI libraries including langchain-rust.

https://developers.googleblog.com/en/gemini-is-now-accessible-from-the-openai-library/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants