-
Notifications
You must be signed in to change notification settings - Fork 53
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
Comments
Thanks for sharing @lukecav! This looks to currently be gated access, so I'm putting this in our |
@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? |
Hi @lukecav @jeffpaul - I believe we can make this easier If this looks useful (we're used in production)- please let me know how we can help. UsagePaLM 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
}' |
@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? |
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
The text was updated successfully, but these errors were encountered: