Docker部署
docker run -d \
--name cohere2api \
-p 8080:8080 \
ghcr.io/xiaozhou26/cohere2api:latest
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