From 791b2fb392614ece1c1d43c27ccd593a49321976 Mon Sep 17 00:00:00 2001 From: Loki Date: Mon, 4 Mar 2024 18:00:05 +0800 Subject: [PATCH] upgrade:readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 1d3fe11..d031a59 100644 --- a/README.md +++ b/README.md @@ -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! 🌟