Skip to content

Call openrouter models show {"error":{"message":"No auth credentials found","code":401}} #227

Closed
@DrWeiZhou

Description

@DrWeiZhou

This config file works well two days agos with KIMI-K2 model in openrouter.

{
  "LOG": false,
  "OPENAI_API_KEY": "",
  "OPENAI_BASE_URL": "",
  "OPENAI_MODEL": "",
  "Providers": [
    {
      "name": "openrouter",
      "api_base_url": "https://openrouter.ai/api/v1/chat/completions",
      "api_key": "sk-or-v1-",
      "models": [
        "moonshotai/kimi-k2"
      ],
	  "transformer": {
        "use": ["openrouter"]
      }
    }
  ],
  "Router": {
    "default": "openrouter,moonshotai/kimi-k2",
	"background": "openrouter,moonshotai/kimi-k2",
    "think": "openrouter,moonshotai/kimi-k2",
    "longContext": "openrouter,moonshotai/kimi-k2"
  }
}

However, it doesn't work now and shows the errors below. What can I do to fix this problem? Txs very much:

│                                                                                     │
│   Overrides (via env):                                                              │
│                                                                                     │
│   • API Base URL: http://127.0.0.1:3456                                             │
╰─────────────────────────────────────────────────────────────────────────────────────╯


 What's new:
  • Hooks: Added UserPromptSubmit hook and the current working directory to hook inputs
  • Custom slash commands: Added argument-hint to frontmatter
  • Windows: OAuth uses port 45454 and properly constructs browser URL
  • Windows: mode switching now uses alt + m, and plan mode renders properly
  • Shell: Switch to in-memory shell snapshot to file-related errors

> 你好
  ⎿  API Error (401 {"error":{"message":"Error from provider: {\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}","type":"api_error","code":"provider_response_error"}}) · Retrying in 1 seconds… (attempt 1/10)
  ⎿  API Error (401 {"error":{"message":"Error from provider: {\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}","type":"api_error","code":"provider_response_error"}}) · Retrying in 1 seconds… (attempt 2/10)
  ⎿  API Error (401 {"error":{"message":"Error from provider: {\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}","type":"api_error","code":"provider_response_error"}}) · Retrying in 2 seconds… (attempt 3/10)
  ⎿  API Error (401 {"error":{"message":"Error from provider: {\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}","type":"api_error","code":"provider_response_error"}}) · Retrying in 4 seconds… (attempt 4/10)
  ⎿  API Error (401 {"error":{"message":"Error from provider: {\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}","type":"api_error","code":"provider_response_error"}}) · Retrying in 8 seconds… (attempt 5/10)
  ⎿  API Error (401 {"error":{"message":"Error from provider: {\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}","type":"api_error","code":"provider_response_error"}}) · Retrying in 20 seconds… (attempt 6/10)

✻ Unravelling… (28s · ↑ 0 tokens · esc to interrupt · offline)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions