Add OpenRouter app attribution headers#58
Conversation
Restores the HTTP-Referer and X-Title headers that were removed in a15c17a. These are used by OpenRouter for app attribution — without them, the App shows as "Unknown" in the OpenRouter activity log. HTTP-Referer points to this repo rather than the upstream HA integration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Happy to add them back if theyre useful to you :) Their removal was pretty early on and I wasn't really anticipating openrouter users to use this integration over the stock one at the time is my excuse :) |
|
Thank you! Yes, I am a happy OpenRouter user. It doesn't seem like upstream is interested in working on the main integration. There are a few "big" QoL changes that could happen for this integration. #1 would be to rename it from "Local LLM" to something a little more generic. As far as I know that would be a breaking change for existing users though... What do you think? |
The local space is still my main target tbh, as at the end of the day that's the space that's primarily lacking in HA core, and what I can more readily test without signing-up for additional services :) I don't think renaming the integration is really a huge quality of life thing, as it doesn't affect how it works or provide any new functionality at all, and yeah if I don't rename the repository as well then people simply don't use the new name and just refer to it by the old name in the repo url anyway (as noted with my tools integration where its still referred to as |

HTTP-RefererandX-Titleheaders to all API requestsHTTP-Refererpoints to this repo instead of the upstream HA integration