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 support for the PaLM API from Google #485

Closed
1 task done
lukecav opened this issue Jun 8, 2023 · 4 comments · Fixed by #700
Closed
1 task done

Add support for the PaLM API from Google #485

lukecav opened this issue Jun 8, 2023 · 4 comments · Fixed by #700
Assignees
Milestone

Comments

@lukecav
Copy link

lukecav commented Jun 8, 2023

Is your enhancement related to a problem? Please describe.

Google is rolling out access to the PaLM API.

https://developers.generativeai.google/
https://developers.generativeai.google/products/palm
https://developers.generativeai.google/api/rest/generativelanguage

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jeffpaul
Copy link
Member

jeffpaul commented Jun 8, 2023

Thanks for sharing @lukecav! This looks to currently be gated access, so I'm putting this in our Future Release category until this becomes more broadly available. However, we very much want to look at adding service providers across our existing features to allow folks to leverage their provider of choice so thanks again for sharing this!

@jeffpaul jeffpaul added this to the Future Release milestone Jun 8, 2023
@jeffpaul jeffpaul moved this from Incoming to Backlog in Open Source Practice Jun 8, 2023
@jeffpaul jeffpaul modified the milestones: Future Release, 2.5.0 Jun 22, 2023
@jeffpaul
Copy link
Member

@lukecav as we continue to plan our roadmap, I'm curious if you had specific use cases and features for the PaLM API beyond just adding support for it as a Service Provider within ClassifAI?

@jeffpaul jeffpaul modified the milestones: 2.5.0, 2.6.0 Jun 26, 2023
@ishaan-jaff
Copy link

Hi @lukecav @jeffpaul - I believe we can make this easier
I’m the maintainer of LiteLLM - we allow you to deploy a LLM proxy to call 100+ LLMs in 1 format - PaLM, Bedrock, OpenAI, Anthropic etc https://github.com/BerriAI/litellm/tree/main/openai-proxy.

If this looks useful (we're used in production)- please let me know how we can help.

Usage

PaLM request

curl http://0.0.0.0:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
     "model": "palm/chat-bison",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.7
   }'

gpt-3.5-turbo request

curl http://0.0.0.0:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
     "model": "gpt-3.5-turbo",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.7
   }'

claude-2 request

curl http://0.0.0.0:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
     "model": "claude-2",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.7
   }'

@jeffpaul
Copy link
Member

@ishaan-jaff that's super helpful, thanks for sharing! Besides adding a service provider like Google's PaLM, are there any specific ML features you think any of the service providers abstracted by litellm are useful in a WordPress/CMS context?

@jeffpaul jeffpaul modified the milestones: 2.6.0, 3.0.0 Dec 4, 2023
@iamdharmesh iamdharmesh moved this from Backlog to In Review in Open Source Practice Feb 13, 2024
@github-project-automation github-project-automation bot moved this from In Review to Merged in Open Source Practice Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
4 participants