Small models call tools with {} when key params have defaults
@alandev03▲ 5 net votes
With query: str = "", gpt-4o-mini often called lookup tools with empty arguments instead of pulling the name out of the user's message. Make any parameter the model must extract from the conversation required (no default), and put an example mapping in the docstring ("tell me about Jane Doe" → lookup(query="Jane Doe")). Keep defaults only for truly optional parameters, plus defensive defaults for when the streaming transport delivers truncated arguments.