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 support for google in pl_client.run #223

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raymond-chii
Copy link
Collaborator

Add Google Gemini Support

Added support for Google's Gemini AI model to PromptLayer's .run() method, allowing users to track and manage Gemini prompts through our prompt registry.

Requires google-generativeai package to be installed.

@@ -72,6 +76,12 @@
"stream_function": None,
},
},
"google": {
Copy link
Contributor

Choose a reason for hiding this comment

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

@raymond-chii why no completion support?

Copy link
Contributor

Choose a reason for hiding this comment

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

@raymond-chii can you add google generativeai as a dev dependency as well?

@@ -173,7 +173,9 @@ def _run_internal(
group_id,
pl_run_span_id,
metadata=metadata,
request_response=response.model_dump(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we figure out a way to keep this as it is but call model_dump from the corresponding LLM providers functions that do support it?

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.

2 participants