🚀 fix: fix typo

This commit is contained in:
Joschka Braun
2023-05-04 17:43:33 +02:00
parent 3aa670ccd6
commit 649c64fe3f

View File

@@ -129,7 +129,7 @@ metas:
system_introduction_message = _GPTConversation._create_system_message(self.microservice_specification.task,
self.microservice_specification.test,
system_definition_examples)
conversation = self.gpt_session.get_conversation(messages=[system_introduction_message])
conversation = self.gpt_session.get_conversation(messages=[system_introduction_message] if system_introduction_message else [])
template_kwargs = {k: v for k, v in template_kwargs.items() if k in template.input_variables}
if 'file_name' in template.input_variables and len(file_name_s) == 1:
template_kwargs['file_name'] = file_name_s[0]