We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162afd8 commit d92b367Copy full SHA for d92b367
src/popup/Popup.jsx
@@ -33,7 +33,7 @@ function GeneralPart({ config, updateConfig }) {
33
const [balance, setBalance] = useState(null)
34
35
const getBalance = async () => {
36
- const response = await fetch('https://api.openai.com/dashboard/billing/credit_grants', {
+ const response = await fetch(`${config.customOpenAiApiUrl}/dashboard/billing/credit_grants`, {
37
headers: {
38
'Content-Type': 'application/json',
39
Authorization: `Bearer ${config.apiKey}`,
0 commit comments