mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
refactor: think
This commit is contained in:
parent
703b2a9a24
commit
a147bdf92a
1 changed files with 1 additions and 2 deletions
|
|
@ -318,8 +318,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
return windows
|
||||
|
||||
@staticmethod
|
||||
def extract_info(input_string):
|
||||
pattern = r"\[([A-Z]+)\]:\s*(.+)"
|
||||
def extract_info(input_string, pattern=r"\[([A-Z]+)\]:\s*(.+)"):
|
||||
match = re.match(pattern, input_string)
|
||||
if match:
|
||||
return match.group(1), match.group(2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue