paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
12.72k stars 1.23k forks source link

Feature: Proxy Support for aider #774

Closed usmanovbf closed 17 hours ago

usmanovbf commented 2 days ago

Issue

Summary:

This feature request proposes adding support for using proxies with Aider, the AI pair programming tool.

Motivation:

Currently, Aider directly connects to LLM APIs, which can be problematic in certain scenarios:

Proposed Solution:

Implement a configuration option within Aider to specify a proxy server address and port. Aider would then route all API requests through this proxy.

Implementation Details:

Add a new section to the Aider configuration file for proxy settings. This section could include fields for:

* `proxy_host`: The hostname or IP address of the proxy server.
* `proxy_port`: The port number of the proxy server.
* `proxy_type`: (Optional) The type of proxy (e.g., HTTP, SOCKS5).
*  `credentials`: dict to store creds

Benefits:

Additional Considerations:

By implementing proxy support, Aider can become more versatile and accessible to a wider range of users.

Version and model info

Aider v0.41.0 Model: gemini/gemini-1.5-pro-latest with diff-fenced edit format Git repo: .git with 16 files Repo-map: using 1024 tokens

paul-gauthier commented 2 days ago

Thanks for trying aider and filing this issue.

Aider uses litellm to connect to LLM APIs, and it supports setting a base url for most providers.

Which provider do you want to proxy to?

paul-gauthier commented 17 hours ago

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.