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

Feature/add proxy configuration #423

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

Conversation

ByJacob
Copy link
Contributor

@ByJacob ByJacob commented Oct 17, 2024

Pull Request Description 🚀

Overview

This pull request updates the Azure library and introduces new features for enhanced configuration options.

Features

  • Updated Azure Library: Upgraded to the latest version for improved functionality. 📚
  • HTTP Proxy Configuration:
    • Added the ability to configure an HTTP proxy for OpenAI and Azure providers. 🌐
    • Note: Proxy features cannot be added for all providers due to differing SDKs and the inability to test all configurations. However, this provides a solid foundation for implementing proxy support for additional clients in the future. 🛠️
  • Custom CA Configuration:
    • Allowed configuration of extra Certificate Authorities (CAs) for the HTTP agent. 🏛️
  • Client Certificate Support:
    • Enabled the use of client certificates when connecting to APIs. 🔑

Documentation

  • Updated relevant documentation to reflect changes in library usage and new configuration options. 📄

Notes

  • Please review the changes and provide feedback. 💬

Thank you! 🙏

…h to different LLM providers and configure additional settings like proxy and CA bundle

📝 (package.json): update devDependencies to include required types packages for follow-redirects, and add dependencies for http-proxy-agent and https-proxy-agent
♻️ (config.ts): refactor config.ts to include new configuration options for HTTP proxy, CA bundle, timeout, verify SSL, client certificate, and API version
🚀 (azure.ts): update azure.ts to use the new OpenAI package and pass the HTTP agent to handle proxy settings
♻️ (groq.ts): refactor groq.ts to use OpenAI package instead of the deprecated @azure/openai package
♻️ (openAi.ts): refactor openAi.ts to use OpenAI package instead of the deprecated @azure/openai package, and pass the HTTP agent to handle proxy settings
🚀 (set_missing_default_values.ts): add new migration to set missing default values in global config file
♻️ (engine.ts): refactor engine.ts to include API version in the default config object
🔧 (httpAgent.ts): add new httpAgent utility to handle HTTP settings including proxy, CA bundle, timeout, verify SSL, and client certificate
…it from Docker build

⬆️ (package.json): upgrade version from 3.2.2 to 3.2.3 in package.json
♻️ (httpAgent.ts): refactor code in getHttpAgent function to improve readability and maintainability
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