File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,6 @@ export function isUsingGithubThirdPartyApi(configOrSession) {
346
346
347
347
export function isSupportBalance ( configOrSession ) {
348
348
return (
349
- isUsingAzureOpenAi ( configOrSession ) ||
350
349
gptApiModelKeys . includes ( configOrSession . modelName ) ||
351
350
chatgptApiModelKeys . includes ( configOrSession . modelName )
352
351
)
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ export function GeneralPart({ config, updateConfig }) {
214
214
{ config . apiKey . length === 0 ? (
215
215
< a
216
216
href = {
217
- 'keyGenerateUrl' in currentModel
217
+ currentModel && 'keyGenerateUrl' in currentModel
218
218
? currentModel . keyGenerateUrl
219
219
: 'https://platform.openai.com/account/api-keys'
220
220
}
You can’t perform that action at this time.
0 commit comments