chore: update balance renderer

This commit is contained in:
JustSong 2023-06-17 15:18:31 +08:00
parent a124bbe42d
commit 9e3783a5b2
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
+ [x] [OpenAI Max](https://openaimax.com)
+ [x] [OpenAI-SB](https://openai-sb.com)
+ [x] [CloseAI](https://console.openai-asia.com/r/2412)
+ [x] [API2GPT](http://console.api2gpt.com/m/00002S)
+ [x] 自定义渠道:例如各种未收录的第三方代理服务
2. 支持通过**负载均衡**的方式访问多个渠道。
3. 支持 **stream 模式**,可以通过流式传输实现打字机效果。

View File

@ -37,7 +37,7 @@ function renderBalance(type, balance) {
case 10: // AI Proxy
return <span>{renderNumber(balance)}</span>;
case 12: // API2GPT
return <span>{renderNumber(balance)}</span>;
return <span>¥{balance.toFixed(2)}</span>;
default:
return <span>不支持</span>;
}