mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 03:07:42 +00:00
chore: fit more competition (#723)
1. Remove potential <code> tags from the generated code. 2. Use return codes in data_loader, feature, and model. 3. Configure the debug timeout.
This commit is contained in:
@@ -34,6 +34,7 @@ class PythonAgentOut(AgentOut):
|
||||
match = re.search(r".*```[Pp]ython\n(.*)\n```.*", resp, re.DOTALL)
|
||||
if match:
|
||||
code = match.group(1)
|
||||
code = re.sub(r"</?code>", "", code, flags=re.IGNORECASE)
|
||||
return code
|
||||
return resp
|
||||
|
||||
@@ -51,7 +52,6 @@ class BatchEditOut(AgentOut):
|
||||
|
||||
|
||||
class PythonBatchEditOut(AgentOut):
|
||||
|
||||
@classmethod
|
||||
def get_spec(cls, with_del=True):
|
||||
return T(".tpl:PythonBatchEditOut").r(with_del=with_del)
|
||||
|
||||
Reference in New Issue
Block a user