Skip to content

Commit

Permalink
bug: [7] multiple models
Browse files Browse the repository at this point in the history
  • Loading branch information
tvaroska committed Dec 10, 2024
1 parent 4c127f9 commit 754156c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions promptgit/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ def parse_children(children):
return response

fields = parse_children(mistletoe.Document(content).children)
# Multiple models - each one at one line
if 'models' in fields:
fields['models'] = fields['models'].split('\n')

return cls.model_validate(fields)

Expand Down

0 comments on commit 754156c

Please sign in to comment.