为什么curl 访问一直返回{"base_resp":{"status_code":2049,"status_msg":"invalid api key"}}

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
api

Research direction

Start with the issue’s curl request and check the Authorization and GroupId headers against the API’s documented authentication format. Reproduce the request with valid credentials and confirm whether it returns the invalid API key response; done means the request format is corrected or the cause is identified.

Written by the indexing model from the issue text.

Description

采用的格式是
curl --location "https://api.minimax.chat/v1/text/chatcompletion"
--header "Content-Type: application/json"
--header "Authorization: Bearer personal-api-KEY"
--header "GroupId: " group-id
--data "{"model":"abab6.5-chat","messages":[{"sender_type":"USER","sender_name":"用户","text":"你好"}]}"

Dominant language
No language data
Stars
588
Forks
83
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MiniMax-AI/MiniMax-M2.5

All issues in MiniMax-AI/MiniMax-M2.5

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.