🔧 fix(OpenAIConversationalAgent.py): update OpenAI conversational agent models to use the latest versions for better performance and accuracy

🔧 fix(constants.py): update OpenAI chat models to use the latest versions for better performance and accuracy
🔧 fix(test_llms_template.py): update test case to use the latest OpenAI chat model for accurate testing
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-08 13:48:17 -03:00
commit 8dfcd06d46
3 changed files with 13 additions and 17 deletions

View file

@ -20,10 +20,11 @@ class ConversationalAgent(CustomComponent):
def build_config(self):
openai_function_models = [
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-16k-0613",
"gpt-4-0613",
"gpt-4-32k-0613",
"gpt-4-1106-preview",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-4",
"gpt-4-32k",
]
return {
"tools": {"is_list": True, "display_name": "Tools"},

View file

@ -6,16 +6,14 @@ OPENAI_MODELS = [
"text-ada-001",
]
CHAT_OPENAI_MODELS = [
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k-0613",
"gpt-3.5-turbo-16k",
"gpt-4-0613",
"gpt-4-32k-0613",
"gpt-4-1106-preview",
"gpt-4",
"gpt-4-32k",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
]
ANTHROPIC_MODELS = [
# largest model, ideal for a wide range of more complex tasks.
"claude-v1",