Enable tools for o3, o3-mini, o4-mini, refs #988

This commit is contained in:
Simon Willison 2025-05-13 16:27:55 -07:00
parent c586f389e1
commit bed617cd62

View file

@ -130,16 +130,16 @@ def register_models(register):
AsyncChat("o1-mini", allows_system_prompt=False),
)
register(
Chat("o3-mini", reasoning=True, supports_schema=True),
AsyncChat("o3-mini", reasoning=True, supports_schema=True),
Chat("o3-mini", reasoning=True, supports_schema=True, supports_tools=True),
AsyncChat("o3-mini", reasoning=True, supports_schema=True, supports_tools=True),
)
register(
Chat("o3", reasoning=True, supports_schema=True),
AsyncChat("o3", reasoning=True, supports_schema=True),
Chat("o3", reasoning=True, supports_schema=True, supports_tools=True),
AsyncChat("o3", reasoning=True, supports_schema=True, supports_tools=True),
)
register(
Chat("o4-mini", reasoning=True, supports_schema=True),
AsyncChat("o4-mini", reasoning=True, supports_schema=True),
Chat("o4-mini", reasoning=True, supports_schema=True, supports_tools=True),
AsyncChat("o4-mini", reasoning=True, supports_schema=True, supports_tools=True),
)
# The -instruct completion model
register(