mimocode 免费模型分析结果

mimocode 免费模型分析结果
mimocode 免费模型分析结果
## 第一步
JWT=$(curl -s -X POST 'https://api.xiaomimimo.com/api/free-ai/bootstrap' \
  -H 'Content-Type: application/json' \
  -d "$(echo -n "{\"client\":\"haha\"}")" | python3 -c "import sys,json;print(json.load(sys.stdin)['jwt'])")

## 第二步
curl -X POST 'https://api.xiaomimimo.com/api/free-ai/openai/chat' \
  -H "Authorization: Bearer $JWT" \
  -H 'X-Mimo-Source: mimocode-cli-free' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "mimo-auto",
    "messages": [{"role":"user","content":"hello, who are you?"}],
    "max_tokens": 128000,
    "stream": true,
    "temperature": 1.0
  }'

1 个帖子 - 1 位参与者

阅读完整话题

来源: LinuxDo 最新话题查看原文