add better warning message

This commit is contained in:
dmahan93 2026-03-02 23:21:25 -06:00
parent add42a2afb
commit 8f21bb57ed

View file

@ -134,7 +134,9 @@ class ManagedServer:
except Exception as e: except Exception as e:
warnings.warn( warnings.warn(
f"Failed to create ToolCallTranslator: {e}. " f"Failed to create ToolCallTranslator: {e}. "
"Tool call parsing will be disabled.", "Tool call parsing will be disabled. "
"Install vllm to enable structured tool call extraction from model output (pip install vllm "
"or pip install 'atroposlib[openai_endpoint]').",
stacklevel=2, stacklevel=2,
) )
self._tool_parser_name = None # Don't retry self._tool_parser_name = None # Don't retry