diff --git a/gptme/tools/base.py b/gptme/tools/base.py index b09bb7f8..0f22f2bc 100644 --- a/gptme/tools/base.py +++ b/gptme/tools/base.py @@ -92,7 +92,8 @@ def from_codeblock(cls, codeblock: Codeblock) -> "ToolUse | None": ) return ToolUse(tool.name, args, codeblock.content) else: - if codeblock.lang: + no_op_langs = ["csv", "json", "html", "xml", "stdout", "stderr", "result"] + if codeblock.lang and codeblock.lang not in no_op_langs: logger.warning( f"Unknown codeblock type '{codeblock.lang}', neither supported language or filename." )