diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.js index 3554f4d654..9cde8b56e9 100644 --- a/api/app/clients/OpenAIClient.js +++ b/api/app/clients/OpenAIClient.js @@ -423,6 +423,7 @@ class OpenAIClient extends BaseClient { promptPrefix: this.options.promptPrefix, resendFiles: this.options.resendFiles, imageDetail: this.options.imageDetail, + modelLabel: this.options.modelLabel, iconURL: this.options.iconURL, greeting: this.options.greeting, spec: this.options.spec, diff --git a/api/app/clients/PluginsClient.js b/api/app/clients/PluginsClient.js index 09e3dc5adc..7259eb56f2 100644 --- a/api/app/clients/PluginsClient.js +++ b/api/app/clients/PluginsClient.js @@ -43,6 +43,7 @@ class PluginsClient extends OpenAIClient { return { artifacts: this.options.artifacts, chatGptLabel: this.options.chatGptLabel, + modelLabel: this.options.modelLabel, promptPrefix: this.options.promptPrefix, tools: this.options.tools, ...this.modelOptions, diff --git a/api/app/clients/specs/OpenAIClient.test.js b/api/app/clients/specs/OpenAIClient.test.js index 2fa37957d1..ab70d4c907 100644 --- a/api/app/clients/specs/OpenAIClient.test.js +++ b/api/app/clients/specs/OpenAIClient.test.js @@ -412,6 +412,7 @@ describe('OpenAIClient', () => { it('should return the correct save options', () => { const options = client.getSaveOptions(); expect(options).toHaveProperty('chatGptLabel'); + expect(options).toHaveProperty('modelLabel'); expect(options).toHaveProperty('promptPrefix'); }); });