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

Validate Google PaLM integration Using the API key #18

Open
Barqawiz opened this issue May 21, 2023 · 2 comments
Open

Validate Google PaLM integration Using the API key #18

Barqawiz opened this issue May 21, 2023 · 2 comments

Comments

@Barqawiz
Copy link
Collaborator

Barqawiz commented May 21, 2023

Intelli-node support Google PaLM through the following test branch:
https://github.com/Barqawiz/IntelliNode/tree/google-palm

A call to test Google PaLM model

Google did not release the access to PaLM model except for some users, if you have access to Google generative models please help to test the integration.

  1. Clone the repo: https://github.com/Barqawiz/IntelliNode/tree/google-palm
  2. Create .env file in the root directory with the following key value: GOOGLE_API_KEY=your-key
  3. Run from the root directory: node test/GoogleAIWrapper.test.js

Pre request:

  • Node installation.
  • Enable Generative AI from google console.
  • Generate Google console API key.

Test Expectation:

  • add the model response as comment to this issue.
@Barqawiz Barqawiz changed the title Google PaLM testing Validate Google PaLM integration May 21, 2023
@Barqawiz Barqawiz changed the title Validate Google PaLM integration Validate Google PaLM integration Using the API key Aug 29, 2023
@Barqawiz
Copy link
Collaborator Author

The API key feature is still not accessible for the public.

@ishaan-jaff
Copy link

Hi @Barqawiz @intelligentnode - 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
   }'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants