chore: compatible credit_grants

This commit is contained in:
josc146
2023-04-12 14:25:55 +08:00
parent c199ac20df
commit d26264a3fc
+1 -1
View File
@@ -33,7 +33,7 @@ function GeneralPart({ config, updateConfig }) {
const [balance, setBalance] = useState(null)
const getBalance = async () => {
const response = await fetch('https://api.openai.com/dashboard/billing/credit_grants', {
const response = await fetch(`${config.customOpenAiApiUrl}/dashboard/billing/credit_grants`, {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${config.apiKey}`,