Skip to content

feat: harden gemini provider path#12

Merged
gay00ung merged 2 commits into
mainfrom
feature/native-gemini-api
Mar 26, 2026
Merged

feat: harden gemini provider path#12
gay00ung merged 2 commits into
mainfrom
feature/native-gemini-api

Conversation

@gay00ung

Copy link
Copy Markdown
Owner

Summary

This PR hardens the native Gemini GenerateContent API path for d2t.

Included changes

  • add config coverage for provider = "gemini"
  • verify the default Gemini resolution path through TOML loading
  • add a native request smoke test for:
    • POST /v1beta/models/{model}:generateContent
    • x-goog-api-key
  • add provider-specific usage docs for Gemini

Why this change

d2t already had Gemini support in code, but the provider path still needed clearer validation around:

  • default config behavior
  • request endpoint and auth expectations
  • user-facing setup guidance

This PR makes the Gemini 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 Gemini provider path only
  • qwen/custom provider behavior is not changed here

@gay00ung gay00ung self-assigned this Mar 26, 2026
@gay00ung gay00ung merged commit a83cf80 into main Mar 26, 2026
1 check passed
@gay00ung gay00ung deleted the feature/native-gemini-api branch March 26, 2026 08:20
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