mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-04 07:16:18 +08:00
chore: compatible credit_grants
This commit is contained in:
+1
-1
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user