feat: show api balance (#582)

* feat: show api balance

* Update index.ts

* 保留小数点后五位

* perf: 判断优化

---------

Co-authored-by: Redon <790348264@qq.com>
This commit is contained in:
pzcn
2023-03-17 09:21:25 +08:00
committed by GitHub
parent 116ed7b0bf
commit e46d3685a0
8 changed files with 90 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ export interface ModelConfig {
timeoutMs?: number
socksProxy?: string
httpsProxy?: string
balance?: string
}
export type ApiModel = 'ChatGPTAPI' | 'ChatGPTUnofficialProxyAPI' | undefined