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

✨ Gemini AI v2 #9

Merged
merged 16 commits into from
May 25, 2024
Merged

✨ Gemini AI v2 #9

merged 16 commits into from
May 25, 2024

Conversation

EvanZhouDev
Copy link
Owner

@EvanZhouDev EvanZhouDev commented May 22, 2024

Gemini AI v2 is completely backward compatible. The only change you may have to be aware of is that configuration settings no longer error when giving a nonexistent field to account for future API changes.

Major Changes:

  • Library is now in TypeScript for type safety
  • File Uploads are now dynamically optimized (automatically uses File API for videos/audio, and inline data for images)
  • MIME types are now detected by the file-type library, so they should be much more reliable
  • New message format (directly pass an array of buffers/strings into the message parameter)
  • Ability to change API version
  • New default model is now gemini-1.5-flash-latest, and optimizations made for Gemini 1.5 models
  • Streaming is now done through SSE, so it should be much more reliable
  • Chat is now completely dependent on Gemini's ask() method, ensuring parity
  • Many improvements have been made under-the-hood from the rewrite!

@EvanZhouDev EvanZhouDev marked this pull request as ready for review May 25, 2024 17:58
@EvanZhouDev EvanZhouDev merged commit 80d12a6 into main May 25, 2024
1 check passed
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