Balance unit is incorrect for Chinese providers, such as DeepSeek and SiliconFlow

Open
#767 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go
Domain
backend

Research direction

Start by locating the balance-handling path used when requesting balances for SiliconFlow and DeepSeek channels. Reproduce the request with each provider and inspect how the returned CNY unit is represented; done means the balance is consistently reported as CNY or correctly converted to USD, with coverage for the affected providers.

Written by the indexing model from the issue text.

Description

bug

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
For Chinese providers, such as DeepSeek and SiliconFlow, the unit of balance is CNY.
But it's saved as unit USD.

复现步骤
Configure SiliconFlow or DeepSeek channel, and then request balance.

预期结果
Use unit CNY for SiliconFlow or DeepSeek, or transfer it to USD.

Dominant language
Go
Stars
48.5k
Forks
11.6k
Avg merge
1d 13h
Merged PRs (30d)
58

Contributor guide

No contributing guide indexed for this repository

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 QuantumNous/new-api

All issues in QuantumNous/new-api

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.