Skip to content

401 {"error":{"code":402,"message":"纳米币余额不足","type":"invalid_request_error"}} #41

@ssgemail

Description

@ssgemail

只用的是main分支代码

连接本地ollama模型报错如标题

第一步:litellm启动成功了,代理端口是9000
LiteLLM: Proxy initialized with Config, Set models:
llama3
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:9000 (Press CTRL+C to quit)

第二步:执行./bin/claude-haha,启动claude成功
对话后,报错:
╭─── Claude Code v999.0.0-local ────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back! │ Run /init to create a CLAUDE.md file with instructi… │
│ │ ──────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity │
│ ▝▜█████▛▘ │ No recent activity │
│ ▘▘ ▝▝ │ │
│ │ │
│ anthropic/claude-sonnet-4-5 · API Usage Billing │ │
│ E:\ollama\cc-haha │ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯

❯ hi ⎿ Please run /login · API Error: 401
{"error":{"code":402,"message":"纳米币余额不足","type":"invalid_request_error"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions