Skip to content

Gateway using Gemini SDK #490

Answered by vrushankportkey
AndryHTC asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @AndryHTC - unfortunately, it is not possible to use Portkey with the Gemini SDK. This is by design - we have made our APIs as well as SDKs compliant with the OpenAI schema, because it makes things much easier, and we believe, is a better standard to follow.

Google Gemini itself now supports calling them using the OpenAI SDK: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/call-gemini-using-openai-library#generativeaionvertexai_gemini_chat_completions_streaming-python_vertex_ai_sdk

If you are not looking for Gateway and only want to send logs to Portkey, I'd suggest looking at our Logs API - https://docs.portkey.ai/docs/portkey-endpoints/logs

Using the Logs API you ca…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vrushankportkey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants