Skip to content

Commit d92b367

Browse files
committed
chore: compatible credit_grants
1 parent 162afd8 commit d92b367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popup/Popup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function GeneralPart({ config, updateConfig }) {
3333
const [balance, setBalance] = useState(null)
3434

3535
const getBalance = async () => {
36-
const response = await fetch('https://api.openai.com/dashboard/billing/credit_grants', {
36+
const response = await fetch(`${config.customOpenAiApiUrl}/dashboard/billing/credit_grants`, {
3737
headers: {
3838
'Content-Type': 'application/json',
3939
Authorization: `Bearer ${config.apiKey}`,

0 commit comments

Comments
 (0)