i guess this might not be possible for every type of HASS installation but a simple workaround is to set the OPENAI_BASE_URL environment variable.
for example on HASS Core started via systemd, you can create a drop-in config with systemctl edit home-assistant
and add:
[Service]
Environment="OPENAI_BASE_URL=https://openrouter.ai/api/v1"