Skip to content

Add GPT-5.6 Sol support - #36

Open
BenKBreen wants to merge 2 commits into
Axiomatic-AI:mainfrom
BenKBreen:GPT-5.6-Sol
Open

Add GPT-5.6 Sol support#36
BenKBreen wants to merge 2 commits into
Axiomatic-AI:mainfrom
BenKBreen:GPT-5.6-Sol

Conversation

@BenKBreen

@BenKBreen BenKBreen commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Adding functionality for GPT-5.6 Sol


Note

Medium Risk
Changes the shared LLM agentic loop and prover token limits used on every proposal; fixes are targeted but affect all OpenAI tool+schema flows.

Overview
Adds a reusable gpt_5_6_sol entry in llms.yaml for openai:gpt-5.6-sol with high reasoning effort, a 600s request timeout, and a 6-attempt exponential-jitter retry policy suited to long reasoning runs.

ProverAgent now defaults max_input_tokens to 200,000 when the LangChain model profile omits it (e.g. newer models), so context truncation logic still behaves safely.

The agentic tool loop strips parsed_arguments from OpenAI function_call content blocks before messages are replayed, fixing Responses API rejections when combining structured output with tool calling.

Reviewed by Cursor Bugbot for commit 5f67604. Bugbot is set up for automated code reviews on this repo. Configure here.

BenKBreen and others added 2 commits July 16, 2026 09:27
- Add gpt_5_6_sol LLM config (openai:gpt-5.6-sol, effort=high) with an
  explicit request timeout and bounded retries so a stalled request fails
  fast instead of hanging.
- Strip client-only parsed_arguments from replayed function_call blocks in
  agentic_loop; the OpenAI Responses API rejects it when tools are combined
  with structured output, breaking the proposer loop.

Co-authored-by: Cursor <cursoragent@cursor.com>
gpt-5.6-sol (and other models newer than langchain-openai's profile
registry) have no max_input_tokens in their profile, returning None and
crashing the < 1000 startup check. Default to 200000 when unknown.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant