Skip to content

Commit

Permalink
馃 fix: Azure Assistants, use deploymentName as Run Model (#2736)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed May 16, 2024
1 parent 4a5d06a commit 8a7f36f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/server/routes/assistants/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8a7f36f

Please sign in to comment.