Skip to content

Disable LLM thinking via OPENAI_DISABLE_THINKING - #2

Open
kingkingkingson wants to merge 1 commit into
vul337:mainfrom
kingkingkingson:fix/disable-llm-thinking
Open

Disable LLM thinking via OPENAI_DISABLE_THINKING#2
kingkingkingson wants to merge 1 commit into
vul337:mainfrom
kingkingkingson:fix/disable-llm-thinking

Conversation

@kingkingkingson

Copy link
Copy Markdown

Summary

  • Add OPENAI_DISABLE_THINKING to suppress model chain-of-thought on both Responses and chat-completions paths.
  • Prevents large prompt inputs from exhausting the completion budget on reasoning, which can leave no usable final answer.

Test plan

  • With OPENAI_DISABLE_THINKING=1, run TC generation against a large source file and confirm the model returns parseable TCU JSON.
  • Without the flag, confirm default thinking behavior is unchanged.
  • Verify both Responses API and chat-completions base URLs honor the flag.

Made with Cursor

Large prompt inputs can exhaust the completion budget on chain-of-thought, leaving no room for a usable answer; allow opting out of reasoning on both Responses and chat-completions paths.

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