Skip to content

feat: harden anthropic provider path#11

Merged
gay00ung merged 1 commit into
mainfrom
feature/native-anthropic-api
Mar 26, 2026
Merged

feat: harden anthropic provider path#11
gay00ung merged 1 commit into
mainfrom
feature/native-anthropic-api

Conversation

@gay00ung

Copy link
Copy Markdown
Owner

Summary

This PR hardens the native Anthropic Messages API path for d2t.

Included changes

  • add config coverage for provider = "anthropic"
  • verify the default Anthropic resolution path through TOML loading
  • add a native request smoke test for:
    • POST /v1/messages
    • x-api-key
    • anthropic-version: 2023-06-01
  • add provider-specific usage docs for Anthropic

Why this change

d2t already had Anthropic support in code, but the provider path was still missing clearer validation around:

  • default config behavior
  • request shape expectations
  • user-facing setup guidance

This PR makes the Anthropic path more explicit and easier to trust.

Validation

  • ./gradlew --no-daemon :apps:cli:test --tests dev.diff2test.android.cli.D2tConfigTest
  • ./gradlew --no-daemon :modules:test-generator:test --tests dev.diff2test.android.testgenerator.OpenAiResponsesTestGeneratorTest

Notes

  • this PR focuses on the native Anthropic provider path only
  • qwen/custom provider behavior is not changed here

@gay00ung gay00ung self-assigned this Mar 26, 2026
@gay00ung gay00ung merged commit 08589ef into main Mar 26, 2026
1 check passed
@gay00ung gay00ung deleted the feature/native-anthropic-api branch March 26, 2026 07:49
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