continue
continue copied to clipboard
Set User-Agent HTTP header
Validations
- [X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that requests the same enhancement
Problem
Continue uses the default value node-fetch for the User-Agent header in HTTP requests which makes its indistinguishable from other node-fetch clients. It would be useful to set it, so model providers can easily identify traffic from Continue and report any potential issues to the project.
Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
Solution
All calls to fetch could go through a simple wrapper that sets the header. The value could be something like:
User-Agent: continue.dev-vscode/0.8.24
User-Agent: continue.dev-jetbrains/0.0.45