Skip to content

feat: use standard proxy environment variables#75

Merged
lfnovo merged 2 commits intomainfrom
standard-proxy-env-vars
Jan 30, 2026
Merged

feat: use standard proxy environment variables#75
lfnovo merged 2 commits intomainfrom
standard-proxy-env-vars

Conversation

@lfnovo
Copy link
Owner

@lfnovo lfnovo commented Jan 30, 2026

Summary

  • Simplify proxy configuration by delegating entirely to httpx
  • httpx natively supports HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables
  • Remove proprietary ESPERANTO_PROXY variable and config={"proxy": ...} parameter

Breaking Changes

  • ESPERANTO_PROXY environment variable no longer supported
  • config={"proxy": "..."} parameter no longer supported

Migration

Replace:

ESPERANTO_PROXY=http://proxy:8080

With:

HTTP_PROXY=http://proxy:8080
HTTPS_PROXY=http://proxy:8080
NO_PROXY=localhost,127.0.0.1

Changes

  • Remove _get_proxy() method from HttpConnectionMixin
  • Simplify _create_http_clients() and _create_langchain_http_clients()
  • Remove tests/test_proxy_configuration.py (no longer needed - no proxy logic in Esperanto)
  • Update documentation

Test plan

  • Tested with mitmproxy - all requests pass through proxy correctly
  • Integration tests pass (36 passed, 2 skipped due to API credits)
  • Verified NO_PROXY works correctly

BREAKING CHANGE: Remove ESPERANTO_PROXY and config={"proxy": ...} support

Simplify proxy configuration by delegating entirely to httpx, which
natively supports HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment
variables.

Changes:
- Remove _get_proxy() method from HttpConnectionMixin
- Simplify _create_http_clients() and _create_langchain_http_clients()
- Remove tests/test_proxy_configuration.py (no longer needed)
- Update documentation to reflect standard env vars

Migration:
- Replace ESPERANTO_PROXY with HTTP_PROXY and/or HTTPS_PROXY
- Remove config={"proxy": ...} usage, use env vars instead
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@claude
Copy link

claude bot commented Jan 30, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@lfnovo lfnovo merged commit c1416da into main Jan 30, 2026
5 checks passed
@lfnovo lfnovo deleted the standard-proxy-env-vars branch January 30, 2026 00:38
leejangthegreat added a commit to leejangthegreat/esperanto that referenced this pull request Jan 30, 2026
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