Skip to content

fix(translation): use consistent HTTP transport for AI requests - #1050

Draft
marcomarcogd wants to merge 1 commit into
DevXDojo:mainfrom
marcomarcogd:codex/fix-ai-translation-http-client
Draft

fix(translation): use consistent HTTP transport for AI requests#1050
marcomarcogd wants to merge 1 commit into
DevXDojo:mainfrom
marcomarcogd:codex/fix-ai-translation-http-client

Conversation

@marcomarcogd

Copy link
Copy Markdown
Contributor

Summary

  • construct AI clients from a cloned default transport with HTTP/2 negotiation and HTTP/1.1 fallback
  • apply the same proxy, TLS, authentication, endpoint and custom-header path to profile tests and actual AI features
  • preserve the injected HTTP client when translation or summary prompts and headers change
  • make the translation factory use the proxy-aware AI translator

Fixes #1044

Related to #918: that report does not include enough reproduction data to close automatically, but users seeing the same AI transport failure can retest this build.

Validation

  • target Go tests for translation, HTTP utilities, AI handlers, chat, service and summary
  • actual HTTP/2 gateway translation test
  • HTTP/1.1 fallback test
  • proxy and custom-header preservation tests
  • git diff --check

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.

[BUG] AI translation gets 502 from OpenAI-compatible gateway while profile test passes

1 participant