Skip to content

Commit dd1587c

Browse files
committed
fix 0d7d735
1 parent 4a25b03 commit dd1587c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/config/index.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ export function isUsingGithubThirdPartyApi(configOrSession) {
346346

347347
export function isSupportBalance(configOrSession) {
348348
return (
349-
isUsingAzureOpenAi(configOrSession) ||
350349
gptApiModelKeys.includes(configOrSession.modelName) ||
351350
chatgptApiModelKeys.includes(configOrSession.modelName)
352351
)

src/popup/sections/GeneralPart.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function GeneralPart({ config, updateConfig }) {
214214
{config.apiKey.length === 0 ? (
215215
<a
216216
href={
217-
'keyGenerateUrl' in currentModel
217+
currentModel && 'keyGenerateUrl' in currentModel
218218
? currentModel.keyGenerateUrl
219219
: 'https://platform.openai.com/account/api-keys'
220220
}

0 commit comments

Comments
 (0)