Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pdflatex/bibtex with xelatex/biber; Implement decorator-based selective proxy usage for API requests. #1972

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hongyi-zhao
Copy link
Collaborator

@hongyi-zhao hongyi-zhao commented Sep 20, 2024

  • Update LaTeX compilation process to use more modern tools.
  • Add proxy_utils.py containing is_private_ip and enhanced should_use_proxy functions
  • Update config.py and include a sample configuration for NO_PROXY_URLS used by proxy_utils.py
  • Add selective_proxy decorator in proxy_utils.py
  • Apply selective_proxy decorator to requests.post in request_llms/bridge_chatgpt.py
  • Apply selective_proxy decorator to requests.post in request_llms/bridge_claude.py

Update LaTeX compilation process to use more modern tools.
…PROXY_URLS

- Add `proxy_utils.py` containing `is_private_ip` and enhanced `should_use_proxy` functions
- Update `config.py` and include a sample configuration for `NO_PROXY_URLS` used by `proxy_utils.py`
- Use `should_use_proxy` function to enhance the related operations in `request_llms/bridge_chatgpt.py`
@hongyi-zhao hongyi-zhao changed the title Replace pdflatex/bibtex with xelatex/biber Replace pdflatex/bibtex with xelatex/biber; Modularize proxy configuration and utilities, enable configurable NO_PROXY_URLS. Sep 21, 2024
- Add selective_proxy_post decorator in proxy_utils.py
- Apply decorator to requests.post in bridge_chatgpt.py
@hongyi-zhao hongyi-zhao changed the title Replace pdflatex/bibtex with xelatex/biber; Modularize proxy configuration and utilities, enable configurable NO_PROXY_URLS. Replace pdflatex/bibtex with xelatex/biber; Implement decorator-based selective proxy usage for API requests. Sep 21, 2024
- Rename decorator in proxy_utils.py from selective_proxy_post to selective_proxy
- Update decorator usage in bridge_chatgpt.py to reflect the new name
- This change better reflects the decorator's potential use for all HTTP methods, not just POST
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