Skip to content

Commit

Permalink
blac
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 11, 2023
1 parent 815bb5c commit 1469a31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ai_ticket/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
"""
This is a simple function to look for the role name in the message of autogpt
yes it is very specific and will have to be more generalized.
"""
import re


pattern = r'(```)?\s*{\s*"messages"\s*:\s*\[\s*\{\s*"role"\s*:\s*"system"\s*,\s*\"content"\s*:\s*"You\s+are\s+(?P<name>[^,]+),.*'


def find_name(text):
if not text:
return False
Expand Down

0 comments on commit 1469a31

Please sign in to comment.