Skip to content

feat(provider): route openai/resp_api to the Responses driver - #551

Merged
smallnest merged 1 commit into
masterfrom
feat/issue-543-wire-resp-api
Aug 2, 2026
Merged

feat(provider): route openai/resp_api to the Responses driver#551
smallnest merged 1 commit into
masterfrom
feat/issue-543-wire-resp-api

Conversation

@smallnest

Copy link
Copy Markdown
Owner

Summary

  • ResolveProvider normalizes --protocol via NormalizeProtocol and switches on the canonical selector.
  • openai and openai/chat build the existing Chat Completions driver (both require --base-url).
  • openai/resp_api builds the Responses driver (NewOpenAIResponsesProvider) against --base-url; empty base-url errors, mirroring the openai rule (Open Question resolved: option B, no public default endpoint).
  • anthropic, --provider <name>, and model-id heuristics are unchanged.

Closes #543

Test plan

  • go build ./...
  • go vet ./internal/provider/
  • go test ./internal/provider/ (new TestResolveProviderResponsesProtocol + unchanged chat/anthropic/provider paths)
  • gofmt -l clean

ResolveProvider now normalizes --protocol once and switches on the
canonical selector: openai/openai/chat build the Chat Completions
driver, openai/resp_api builds the Responses driver, both requiring an
explicit --base-url. anthropic and the model-id heuristics are
unchanged. resp_api with no base-url errors, mirroring the openai rule.
@smallnest
smallnest merged commit c24b1a4 into master Aug 2, 2026
1 check passed
@smallnest
smallnest deleted the feat/issue-543-wire-resp-api branch August 2, 2026 03:48
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.

将 resp_api 变体接入 ResolveProvider

1 participant