continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.43k stars 1.69k forks source link

Set custom User-Agent header #2988

Closed pczekaj closed 2 days ago

pczekaj commented 3 days ago

Description

Replaced the default 'node-fetch' User-Agent with 'continue.dev' to better identify requests

Checklist

Screenshots

[ For visual changes, include screenshots. ]

Testing

[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change. ] [ For new UI features, ensure that the changes look good across viewport widths, light/dark theme, etc ]

netlify[bot] commented 3 days ago

Deploy Preview for continuedev failed. Why did it fail? →

Name Link
Latest commit d025f02c91e5b00ad6b60fe2f19677609570839e
Latest deploy log https://app.netlify.com/sites/continuedev/deploys/673c6f458857350008f0eb42
sestinj commented 2 days ago

Hi @pczekaj, I'd prefer not to have this by default, but for users that want to use it the requestOptions.headers option in config.json will allow requests to be identified