Skip to content

Commit

Permalink
Handle None prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippThoelke committed Jul 12, 2024
1 parent 05ea84b commit 15b9d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goofi/nodes/inputs/textgeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def generate_gemini_response(self, text, temp, keep_conversation):
return response.text

def process(self, prompt: Data):
if prompt.data is None:
if prompt is None or prompt.data is None:
return None

self.import_libs(self.params["text_generation"]["model"].value)
Expand Down

0 comments on commit 15b9d22

Please sign in to comment.