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

Adding new methods and models support #17

Merged
merged 1 commit into from
May 19, 2024
Merged

Adding new methods and models support #17

merged 1 commit into from
May 19, 2024

Conversation

gbaptista
Copy link
Owner

@gbaptista gbaptista commented May 19, 2024

  • Detaching model from base URL;
  • Adding the new predict and embed_content methods;
  • Validating support for Gemini 1.5 Pro and Gemini 1.5 Flash;
  • Adding documentation for Embeddings generation;

Breaking Change: client.request now requires a longer portion of the path:

Before:

client.request(
  'streamGenerateContent',
  # ...
)

After:

client.request(
  'publishers/google/models/gemini-pro:streamGenerateContent',
  # ...
)

This breaking change should not be impactful (we infer that most users don't use client.request directly) and will enable the Gem to evolve in the future to support more methods and requests that are not necessarily attached to a specific model.

@gbaptista gbaptista merged commit 1d10c98 into main May 19, 2024
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.

None yet

1 participant