diff --git a/api/app/clients/ChatGPTClient.js b/api/app/clients/ChatGPTClient.js index 802ba162d96..bac7849a15c 100644 --- a/api/app/clients/ChatGPTClient.js +++ b/api/app/clients/ChatGPTClient.js @@ -236,7 +236,7 @@ class ChatGPTClient extends BaseClient { baseURL: this.langchainProxy, azureOptions: this.azure, }) - : this.azureEndpoint.split(/\/(chat|completion)/)[0]; + : this.azureEndpoint.split(/(? { // 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, },