mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-27 18:04:15 +08:00
when the custom model url or key is empty, use the global value (#647)
This commit is contained in:
@@ -92,8 +92,10 @@ async function executeApi(session, port, config) {
|
||||
port,
|
||||
session.question,
|
||||
session,
|
||||
session.apiMode.customUrl.trim() || 'http://localhost:8000/v1/chat/completions',
|
||||
session.apiMode.apiKey,
|
||||
session.apiMode.customUrl.trim() ||
|
||||
config.customModelApiUrl.trim() ||
|
||||
'http://localhost:8000/v1/chat/completions',
|
||||
session.apiMode.apiKey.trim() || config.customApiKey,
|
||||
session.apiMode.customName,
|
||||
)
|
||||
} else if (isUsingChatgptWebModel(session)) {
|
||||
|
||||
Reference in New Issue
Block a user