Skip to content

[codex] Fix tool calling probe for thinking models#270

Draft
Rabithua wants to merge 1 commit into
developfrom
codex/fix-thinking-tool-probe
Draft

[codex] Fix tool calling probe for thinking models#270
Rabithua wants to merge 1 commit into
developfrom
codex/fix-thinking-tool-probe

Conversation

@Rabithua

Copy link
Copy Markdown
Owner

Summary

  • Change frontend personal AI tool-calling probe to use tool_choice: "auto" instead of forcing a specific function tool.
  • Apply the same change to the backend provider probe used by site model testing.
  • Add tests that assert probe requests send tool_choice: "auto".

Why

Some thinking/reasoning model providers reject tool_choice: "required" or function-object tool choices while thinking mode is enabled. The probe was surfacing that provider 400 as a missing tool-calling result.

Validation

  • cd web && bun run test src/utils/personalAiProvider.test.ts
  • cd server && bun test tests/aiClient.test.ts
  • cd web && bun run lint
  • cd web && bun run build
  • cd server && bun run lint
  • cd server && bun run build

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