Skip to content

Commit 7399bb1

Browse files
committed
Use OpenRouter reasoning object for gpt-5.5
Probing the OR endpoint directly: when tools are sent alongside the bare reasoning_effort param, OpenRouter silently drops reasoning. Sending reasoning as an object (reasoning: {effort: ...}) preserves both. Set openrouter_reasoning_object=True so users picking a thinking level actually get reasoning back when their workflow uses tools. https://claude.ai/code/session_01WSZjtD8K2X51BBJgaq2c5M
1 parent a349335 commit 7399bb1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libs/core/kiln_ai/adapters/ml_model_list.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ class KilnModel(BaseModel):
557557
structured_output_mode=StructuredOutputMode.json_schema,
558558
available_thinking_levels=GPT_5_4_OPENAI_THINKING_LEVELS,
559559
default_thinking_level="none",
560+
# Use OpenRouter's reasoning object so reasoning is preserved
561+
# when tools are sent (the bare reasoning_effort param is
562+
# silently dropped on tool calls for openai/gpt-5.5).
563+
openrouter_reasoning_object=True,
560564
suggested_for_evals=True,
561565
suggested_for_data_gen=True,
562566
supports_doc_extraction=True,

0 commit comments

Comments
 (0)