🪰 fix: Azure Parsing and Assistants Payload (#2133)

* fix(azure): fix regex to prevent edge cases

* fix(assistants): pass relevant endpoint options to avoid sending them to API
This commit is contained in:
Danny Avila 2024-03-18 19:48:42 -04:00 committed by GitHub
parent 7cddd943d0
commit f51ac74e12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

@ -1,9 +1,10 @@
const buildOptions = (endpoint, parsedBody) => {
// eslint-disable-next-line no-unused-vars
const { promptPrefix, chatGptLabel, resendImages, imageDetail, ...rest } = parsedBody;
const { promptPrefix, assistant_id, ...rest } = parsedBody;
const endpointOption = {
endpoint,
promptPrefix,
assistant_id,
modelOptions: {
...rest,
},