Add OpenAI SDK
This PR adds a Jupyter notebook demonstrating how to call Google Gemini models (e.g., Gemini Pro) using the OpenAI Python SDK interface. Key features:
- Uses an adapter to translate OpenAI-style requests to Gemini’s API.
- Supports chat completions and embeddings with minimal code changes.
- Simplifies testing Gemini for developers familiar with OpenAI’s SDK.
Use Case: Enables quick prototyping, model comparison, and smoother migration between LLM providers.
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
A more detailed version of this notebook already exists in this repo
./quickstarts/Get_started_OpenAI_Compatibility.ipynb
Please see the CONTRIBUTING guide for details on submitting new guides, and note that "step 1" is to file a new issue.
As @andycandy pointed out, we have this guide already, and it has the exposition we need in a guide.