eduStack / Groq2API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Groq2API

Installation

docker run -d -p 8080:8080  ghcr.io/star-studio-develop/groq2api:latest

Usage

curl --request POST \
  --url http://127.0.0.1:8080/v1/chat/completions \
  --header 'Authorization: Bearer change-it-to-your-refresh-token' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "hi"
    }
  ],
  "model": "mixtral-8x7b-32768",
  "max_tokens": 500,
  "stream": true
}'

image

About

License:Apache License 2.0


Languages

Language:Go 96.5%Language:Dockerfile 3.5%