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

Contribute to Aider to set user agent #774

Open
Tracked by #650
jhrozek opened this issue Jan 27, 2025 · 1 comment
Open
Tracked by #650

Contribute to Aider to set user agent #774

jhrozek opened this issue Jan 27, 2025 · 1 comment
Assignees

Comments

@jhrozek
Copy link
Contributor

jhrozek commented Jan 27, 2025

Since codegate would benefit to know which coding assistant is talking to it, we should enhance aider to send either a user-agent or a user-agent-like header.

@jhrozek
Copy link
Contributor Author

jhrozek commented Jan 27, 2025

It turned out to be non-trivial to add the traditional user-agent header to aider because it uses litellm which in turn uses the openAI python library where the only way to add a user-agent seems to be to override the httpx.Transport. Because this might be complicated to pass through down the stack (aider -> litellm -> openai) and might have side-effects, I opted to add a custom header to ader instead in Aider-AI/aider#2988

@jhrozek jhrozek self-assigned this Jan 27, 2025
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

No branches or pull requests

2 participants