mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
fix(PluginsClient/getFunctionModelName): returns input if agent model is function capable (#1246)
This commit is contained in:
parent
166a4fa44f
commit
94df631c44
2 changed files with 46 additions and 1 deletions
|
|
@ -53,7 +53,9 @@ class PluginsClient extends OpenAIClient {
|
|||
}
|
||||
|
||||
getFunctionModelName(input) {
|
||||
if (input.includes('gpt-3.5-turbo')) {
|
||||
if (/-(?!0314)\d{4}/.test(input)) {
|
||||
return input;
|
||||
} else if (input.includes('gpt-3.5-turbo')) {
|
||||
return 'gpt-3.5-turbo';
|
||||
} else if (input.includes('gpt-4')) {
|
||||
return 'gpt-4';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue