🐛 fix(chains.py): temporarily fix field_type for BaseLanguageModel to improve compatibility

🐛 fix(test_prompts_template.py): fix value of validate_template to False to align with expected behavior
🐛 fix(test_template.py): update value of options to "gpt-4-1106-preview" to reflect the latest version
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-06 21:02:22 -03:00
commit f4e642ec47
3 changed files with 4 additions and 2 deletions

View file

@ -87,6 +87,8 @@ class ChainFrontendNode(FrontendNode):
field.required = True
field.show = True
field.advanced = False
field.field_type = "BaseLanguageModel" # temporary fix
field.is_list = False
if field.name == "return_source_documents":
field.required = False