Skip to content

[Bug]: Wrong connections to MINIMAX api (openapi compatible) #3238

@npolevara

Description

@npolevara

Current Behavior

console error
Failed to post message: failed to stream openai-chat chat: API returned status 401: {"type":"error","error":{"type":"authorized_error","message":"login fail: Please carry the API secret key in the 'Authorization' field of the request header (1004)","http_code":"401"},"request_id":"063432299e74d9b466b94f06aa8d7835"}

config:

{
  "minimax-2.7": {
    "display:name": "minimax",
    "display:order": 1,
    "display:icon": "microchip",
    "ai:provider": "custom",
    "ai:apitype": "openai-chat",
    "ai:model": "MiniMax-M2.7",
    "ai:endpoint": "https://api.minimax.io/v1/chat/completions",
    "ai:apitokensecretname": "MINIMAX",
    "ai:capabilities": [
      "tools"
    ]
  }
}

Expected Behavior

interact with chat like with default provider

Steps To Reproduce

try to use default config which the same as openai, just different api web address

Wave Version

v0.14.5

Platform

macOS

OS Version/Distribution

Tahoe 26.3.1

Architecture

arm64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions