MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API

github.com/SMNETSTUDIO/Groq2API @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
45 symbols 141 edges 18 files 1 documented · 2% updated 17mo ago★ 3453 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Groq2API

Installation


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

Vercel部署

Deploy with Vercel

Koyeb部署

Deploy to Koyeb

Render部署

Deploy

Railway部署

Deploy on Railway

Usage

可选参数列表

  • model 模型名称
  • gemma-7b-it
  • mixtral-8x7b-32768
  • llama2-70b-4096
  • llama3-8b-8192
  • llama3-70b-8192
  • stream 是否流式输出
  • true
  • false
  • max_tokens 最大生成长度
  • 4096 (llama2-70b-4096)
  • 8192 (gemma-7b-it)
  • 32768 (mixtral-8x7b-32768)
  • message
  • role 消息角色
    • user
    • assistant

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

Core symbols most depended-on inside this repo

Set
called by 38
pkg/groq/interface.go
Header
called by 13
pkg/groq/response.go
Get
called by 9
pkg/accountpool/accounts.go
SetProxy
called by 6
pkg/cuhttp/http.go
baseHeader
called by 4
pkg/groq/request.go
authRefreshHandler
called by 4
router/chat.go
InitRouter
called by 2
initialize/router.go
InitProxy
called by 2
initialize/proxy.go

Shape

Function 29
Method 9
Struct 6
TypeAlias 1

Languages

Go100%

Modules by API surface

pkg/groq/response.go6 symbols
pkg/groq/request.go6 symbols
pkg/cuhttp/http.go6 symbols
router/chat.go5 symbols
pkg/proxypool/proxys.go4 symbols
pkg/groq/interface.go3 symbols
pkg/accountpool/accounts.go3 symbols
pkg/groq/http.go2 symbols
api/router.go2 symbols
middlewares/cors.go1 symbols
middlewares/auth.go1 symbols
main.go1 symbols

For agents

$ claude mcp add Groq2API \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact