Skip to content

Commit

Permalink
upgrade:readme
Browse files Browse the repository at this point in the history
  • Loading branch information
WongLoki committed Mar 4, 2024
1 parent 7bb42d9 commit 791b2fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ curl https://${BASE_URL}/models/gemini-pro:generateContent?key=${API_KEY} \
"text": "Write a story about a magic backpack."}]}]}' 2> /dev/null
```

### Groq
for **Groq** change `https://api.groq.com/openai/v1` to `YOUR_DEPLOYED_URL/openai/v1`


```diff
export API_KEY="YOUR_API_KEY"
- export BASE_URL="https://api.groq.com/openai/v1"
+ export BASE_URL="YOUR_DEPLOYED_URL/openai/v1"

curl https://${BASE_URL}/chat/completions \
-H "Authorization: Bearer $GROQ_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{"messages": [{"role": "user", "content": "Explain the importance of low latency LLMs"}], "model": "mixtral-8x7b-32768"}'
```

## Give it a Star
If you found this Implementation helpful or used it in your Projects, do give it a star. Thanks! 🌟
Expand Down

0 comments on commit 791b2fb

Please sign in to comment.