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 general support for proxies #22

Open
weilandia opened this issue Jun 24, 2024 · 1 comment
Open

Add general support for proxies #22

weilandia opened this issue Jun 24, 2024 · 1 comment

Comments

@weilandia
Copy link
Contributor

For example, supporting Helicone

curl --request POST \
  --url https://gateway.helicone.ai/v1/projects/your-project-id/locations/your-location/publishers/google/models/model-name:streamGenerateContent \
  --header 'Authorization: Bearer ${GCLOUD_API_KEY}' \
  --header 'Content-Type: application/json' \
  --header 'Helicone-Auth: Bearer ${HELICONE_API_KEY}' \
  --header 'Helicone-Target-URL: https://${LOCATION}-aiplatform.googleapis.com' \
  --header 'User-Agent: curl/7.64.1' \
  --data '{
  "contents": {
    "role": "user",
    "parts": {
      "text": "Which theaters in Mountain View show Barbie movie?"
    }
  },
  "generation_config": {
    "maxOutputTokens": 1
  }
}'
@timabdulla
Copy link

#27 addresses this, if you want to try my branch.

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