github models通过

使用教程:

  1. Sign in to GitHub · GitHub 获取一个token(无需添加任何权限)
  2. 发送请求到 https://models.inference.ai.azure.com/chat/completions
    示例curl
curl --location --request POST 'https://models.inference.ai.azure.com/chat/completions' \
--header 'Authorization: Bearer {github_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "gpt-4o-mini",
  "stream": false,
  "messages": [
    {
      "role": "user",
      "content": "你是谁?"
    }
  ]
}'