From bed617cd6212ecab65e2720d031a93be2594db8c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 13 May 2025 16:27:55 -0700 Subject: [PATCH] Enable tools for o3, o3-mini, o4-mini, refs #988 --- llm/default_plugins/openai_models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llm/default_plugins/openai_models.py b/llm/default_plugins/openai_models.py index 0ca17a7..0ecc631 100644 --- a/llm/default_plugins/openai_models.py +++ b/llm/default_plugins/openai_models.py @@ -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(