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

add litellm example (OpenAI-Compatible Endpoint) #71

Closed
wants to merge 1 commit into from

Conversation

krrishdholakia
Copy link

Hi @random-forests @markmcd,

Adding a tutorial to show how to call Gemini through an OpenAI-Compatible Endpoint (via LiteLLM)

This supports Google AI Studio + Vertex AI as well.

Let me know if there's anything further required here!

Copy link

google-cla bot commented Apr 17, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@MarkDaoust
Copy link
Contributor

Hi, we're planning to put integration examples like this in an examples/integrations/ directory. Can you create that directory and move this file into it?

@MarkDaoust MarkDaoust added the status:awaiting response Awaiting a response from the author label May 22, 2024
@MarkDaoust
Copy link
Contributor

Also, se can't merge anything until you sign the CLA.

@krrishdholakia
Copy link
Author

Hey @MarkDaoust thanks for the bump - just signed the CLA

Copy link

Marking this pull request as stale since it has been open for 14 days with no activity. This PR will be closed if no further activity occurs.

@github-actions github-actions bot added the status:stale Issue/PR is marked for closure due to inactivity label Aug 16, 2024
@markmcd markmcd added status:awaiting review PR awaiting review from a maintainer and removed status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity labels Aug 16, 2024
@markmcd
Copy link
Member

markmcd commented Aug 16, 2024

Please ignore the "stale" check above. I'll reset the counter since you were waiting on us.

I've rebased your PR to the current head to pick up the lint, etc checks. Please take a look at them.

Can you also:

  • Give the guide a descriptive title - it needs to describe what this guide demonstrates (include the task, like "question answering" or "building a chatbot" - it could be something like "Generating content with LiteLLM" or "Issuing OpenAI compatible requests to the Gemini API with LiteLLM")
  • Update the filename to match, and put it in examples/litellm/...
  • Add an intro sentence/paragraph to explain what task the reader is going to implement, including links to relevant content (like litellm docs).
  • Also add descriptions to each section of the guide, explaining what will be done.
  • Include response outputs where they are helpful, e.g. to show the model has responsed.

For a good example, check out this langchain example (but yours can be much shorter).

Also please refer to the style guide for guidance on how to structure your text.

@markmcd markmcd added status:awaiting response Awaiting a response from the author and removed status:awaiting review PR awaiting review from a maintainer labels Aug 16, 2024
@markmcd markmcd self-requested a review August 16, 2024 04:32
Copy link

Marking this pull request as stale since it has been open for 14 days with no activity. This PR will be closed if no further activity occurs.

@github-actions github-actions bot added the status:stale Issue/PR is marked for closure due to inactivity label Aug 31, 2024
Copy link

This pull request was closed because it has been inactive for 27 days. Please open a new pull request if you need further assistance. Thanks!

@github-actions github-actions bot closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants