🤖 fix: Azure Assistants, use deploymentName as Run Model (#2736)

This commit is contained in:
Danny Avila 2024-05-15 23:34:35 -04:00 committed by GitHub
parent 4a5d06a774
commit 8a7f36f581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {