Skip to content

Add tls_skip_verify config option#67

Merged
WZ merged 2 commits intomainfrom
feat/tls-skip-verify
Mar 11, 2026
Merged

Add tls_skip_verify config option#67
WZ merged 2 commits intomainfrom
feat/tls-skip-verify

Conversation

@WZ
Copy link
Owner

@WZ WZ commented Mar 11, 2026

Summary

  • Add tls_skip_verify config option (YAML + TLS_SKIP_VERIFY env var) to skip TLS certificate verification on the shared HTTP client
  • Fixes x509: certificate signed by unknown authority errors when openai_base_url points to an endpoint behind a corporate/internal CA (e.g. litellm proxy)
  • Log raw response body on OpenAI Responses API errors (HTTP status check + truncated body in error messages) to aid debugging non-JSON responses from proxied endpoints

Test plan

  • Set tls_skip_verify: true and confirm LLM calls to a corporate-CA endpoint succeed
  • Set tls_skip_verify: false (default) and confirm standard TLS verification still works
  • Trigger a non-JSON error response and verify the raw body appears in logs
  • CGO_ENABLED=1 go test ./... passes
  • Docker build succeeds

Codex added 2 commits March 10, 2026 20:38
Allows skipping TLS certificate verification on the shared HTTP client,
needed when openai_base_url points to an endpoint behind an internal CA
(e.g. litellm proxy). Configurable via config.yaml or TLS_SKIP_VERIFY env.
Adds HTTP status check before JSON parsing and includes truncated
response body in error messages to aid debugging non-JSON responses
from proxied endpoints.
@WZ WZ merged commit 2235c4f into main Mar 11, 2026
1 check passed
@WZ WZ deleted the feat/tls-skip-verify branch March 11, 2026 04:46
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