MartialBE / one-hub

OpenAI 接口管理 & 分发系统,改自songquanpeng/one-api。支持更多模型,加入统计页面,完善非openai模型的函数调用。
https://one-api-martialbe.vercel.app/
Apache License 2.0
996 stars 197 forks source link

Support for alternate currencies beside CNY (¥)? #313

Open razielaka opened 1 month ago

razielaka commented 1 month ago

Hi. Thanks for the hard work. At present, only CNY (¥) is supported. It would be great if other currencies could be supported as well. A possible implementation is to allow updating exchange rates and available currencies through a user-defined json URL similar to the prices.json file. If that's too much of a hassle, it would be good if the root user could change the exchange rate and symbol to replace CNY (¥) in the settings (e.g., Payment Settings). An exchange rate can be set in the Settings under Payment Settings, but it doesn't affect the exchange rates in the "Pricing" and "Model Price" sections. See pics below. image image

Thanks for considering my request. All the best, Raz

MartialBE commented 1 month ago

Due to system design limitations, the use of currencies other than the current one is not supported at the moment. This is a major change and I currently do not have the resources to implement it.