Skip to content

fix: replace retired probe default models for Claude and OpenAI - #146

Merged
lich0821 merged 1 commit into
lich0821:masterfrom
pcbeingused333:fix/retired-probe-defaults
Oct 23, 2026
Merged

lich0821 merged 1 commit into
lich0821:masterfrom
pcbeingused333:fix/retired-probe-defaults

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

The endpoint test, the minimal-request probe and the token-count probe fall back to a hard-coded model when the endpoint has none configured. Those fallbacks are about to stop existing, so a working endpoint would be reported as failing:

  • claude-sonnet-4-5-20250929 (claude path in TestEndpoint and testMinimalRequest, and testTokenCountAPI) retires on 2026-11-30.
  • gpt-4-turbo (openai chat and openai2 Responses probes) is shut down by OpenAI on 2026-10-23 (https://developers.openai.com/api/docs/deprecations).

New fallbacks:

  • claude: claude-sonnet-5-5.
  • openai2 (Responses): gpt-5.6-sol, the replacement named on the deprecations page. This probe sends max_output_tokens.
  • openai (chat completions): gpt-4.1-mini. The probe sends max_tokens, which the Chat Completions reference marks as deprecated in favour of max_completion_tokens and not compatible with o-series models; the gpt-5.6 pages do not say whether they accept it, and changing the parameter could break OpenAI-compatible endpoints, so the request shape is unchanged. gpt-4.1-mini is available until 2027-01-14; moving this probe to a gpt-5.6 model needs max_completion_tokens and can follow separately.

Tests: probe_default_model_test.go records the model the probes send to a local server. Six tests fail on master (claude-sonnet-4-5-20250929 x3, gpt-4-turbo x3) and pass with this change; go test ./internal/service/ passes.

This change was made with Claude Code.

🤖 Generated with Claude Code

The endpoint test, the minimal-request probe and the token-count probe
fell back to claude-sonnet-4-5-20250929 when the endpoint had no model,
and the openai and openai2 probes fell back to gpt-4-turbo, which OpenAI
shuts down on 2026-10-23. Probe claude-sonnet-5-5 and gpt-5.6-sol on the
Responses path (it sends max_output_tokens) and gpt-4.1-mini on the chat
completions path, which keeps sending max_tokens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@lich0821
lich0821 merged commit 59052ac into lich0821:master Oct 23, 2026
6 checks passed
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.

2 participants