xiaozhou26 / cohere2api

free cohere

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cohere2api

Vercel部署

Deploy with Vercel

Docker部署

docker run -d \
  --name cohere2api \
  -p 8080:8080 \
  ghcr.io/xiaozhou26/cohere2api:latest

Usage

curl --request POST \
  --url http://127.0.0.1:8080/v1/chat/completions \
  --header 'Authorization: Bearer cohere key' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "test"
    }
  ],
  "model": "command-r-plus",
}'

支持的模型

command-r-plus command-r command command-nightly command-light command-light-nightly

cohere key获取

https://dashboard.cohere.com/api-keys

About

free cohere


Languages

Language:Go 93.0%Language:Dockerfile 7.0%