mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 01:17:39 +01:00
Mistral API being weird, part 2
This commit is contained in:
parent
ce4c1b8d01
commit
cd88702e33
@ -540,6 +540,7 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o
|
|||||||
} else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MISTRALAI) {
|
} else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MISTRALAI) {
|
||||||
api_url = 'https://api.mistral.ai/v1';
|
api_url = 'https://api.mistral.ai/v1';
|
||||||
api_key_openai = readSecret(SECRET_KEYS.MISTRALAI);
|
api_key_openai = readSecret(SECRET_KEYS.MISTRALAI);
|
||||||
|
headers = { 'Content-Length': '0' }; // WTF?
|
||||||
} else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.CUSTOM) {
|
} else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.CUSTOM) {
|
||||||
api_url = request.body.custom_url;
|
api_url = request.body.custom_url;
|
||||||
api_key_openai = readSecret(SECRET_KEYS.CUSTOM);
|
api_key_openai = readSecret(SECRET_KEYS.CUSTOM);
|
||||||
|
Loading…
Reference in New Issue
Block a user