feat(openrouter): send HTTP-Referer and X-Title headers to identify app

Merged
RO
7mo ago
+12-0

Summary

  • Adds HTTP-Referer: https://www.continue.dev/ and X-Title: Continue headers to all OpenRouter API requests, per the OpenRouter docs
  • This identifies Continue in OpenRouter's activity dashboard and App Showcase
  • User-configured headers in requestOptions.headers take precedence over the defaults

Closes #4049

Test plan

  • Verify OpenRouter requests include HTTP-Referer and X-Title headers
  • Verify user-configured requestOptions.headers can still override these defaults
  • Confirm the OpenRouter activity dashboard shows "Continue" in the App column

Summary by cubic

Send HTTP-Referer: https://www.continue.dev/ and X-Title: Continue with all OpenRouter API requests to identify the app in OpenRouter’s dashboard and App Showcase. Headers are injected via requestOptions.headers so they apply to all requests; user-provided headers still override, and the redundant getHeaders() override was removed.