From 649c64fe3f023967e9aad3e7e294a194e229ff41 Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Thu, 4 May 2023 17:43:33 +0200 Subject: [PATCH] :rocket: fix: fix typo --- src/options/generate/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options/generate/generator.py b/src/options/generate/generator.py index 48fe280..6004002 100644 --- a/src/options/generate/generator.py +++ b/src/options/generate/generator.py @@ -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]