🧩 fix(Plugins): Keep User agentModel and Model Validation (#1972)

* fix: do not override model

* temp fix for secondary model validation
This commit is contained in:
Danny Avila 2024-03-04 17:07:30 -05:00 committed by GitHub
parent 62834e18fb
commit 8bef084bfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View file

@ -31,10 +31,6 @@ class PluginsClient extends OpenAIClient {
super.setOptions(options);
if (this.functionsAgent && this.agentOptions.model && !this.useOpenRouter && !this.azure) {
this.agentOptions.model = this.getFunctionModelName(this.agentOptions.model);
}
this.isGpt3 = this.modelOptions?.model?.includes('gpt-3');
if (this.options.reverseProxyUrl) {