mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🔧 fix: Add modelLabel to OpenAIClient and PluginsClient options (#4995)
This commit is contained in:
parent
f15035542f
commit
6ef05dd2e6
3 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue