mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-20 07:04:20 +01:00
🛺 fix: auto refinement parsing
This commit is contained in:
@@ -5,6 +5,12 @@ import re
|
||||
def identity_parser(x):
|
||||
return x
|
||||
|
||||
def optional_tripple_back_tick_parser(x):
|
||||
if '```' in x:
|
||||
pattern = r'```(.+)```'
|
||||
x = re.findall(pattern, x, re.DOTALL)[-1]
|
||||
return x.strip()
|
||||
|
||||
def boolean_parser(x):
|
||||
return 'yes' in x.lower()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user