diff --git a/api/server/routes/assistants/chat.js b/api/server/routes/assistants/chat.js index 69be8a7b3e4..96a09d02dd8 100644 --- a/api/server/routes/assistants/chat.js +++ b/api/server/routes/assistants/chat.js @@ -514,6 +514,7 @@ router.post('/', validateModel, buildEndpointOption, setHeaders, async (req, res const processRun = async (retry = false) => { if (req.app.locals[EModelEndpoint.azureOpenAI]?.assistants) { + body.model = openai._options.model; openai.attachedFileIds = attachedFileIds; openai.visionPromise = visionPromise; if (retry) {