We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a25b03 commit dd1587cCopy full SHA for dd1587c
src/config/index.mjs
@@ -346,7 +346,6 @@ export function isUsingGithubThirdPartyApi(configOrSession) {
346
347
export function isSupportBalance(configOrSession) {
348
return (
349
- isUsingAzureOpenAi(configOrSession) ||
350
gptApiModelKeys.includes(configOrSession.modelName) ||
351
chatgptApiModelKeys.includes(configOrSession.modelName)
352
)
src/popup/sections/GeneralPart.jsx
@@ -214,7 +214,7 @@ export function GeneralPart({ config, updateConfig }) {
214
{config.apiKey.length === 0 ? (
215
<a
216
href={
217
- 'keyGenerateUrl' in currentModel
+ currentModel && 'keyGenerateUrl' in currentModel
218
? currentModel.keyGenerateUrl
219
: 'https://platform.openai.com/account/api-keys'
220
}
0 commit comments