feat: support API2GPT platform (#173)

* support API2GPT platform

* chore: update balance renderer

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
Kidultx
2023-06-17 15:20:51 +08:00
committed by GitHub
parent 46c43396d8
commit a43b1e2add
5 changed files with 35 additions and 2 deletions

View File

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