MCPcopy Create free account
hub / github.com/GAIR-NLP/factool / solution_extract

Method solution_extract

factool/code/helper/postprocess.py:36–40  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

34
35 @staticmethod
36 def solution_extract(content):
37 for identifier in STOP_TOKEN:
38 if identifier in content:
39 content = content.split(identifier)[0]
40 return content

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected