lmg-anon / mikupad

LLM Frontend in a single html file
https://lmg-anon.github.io/mikupad/mikupad.html
Creative Commons Zero v1.0 Universal
233 stars 26 forks source link

Add OpenRouter compatibility #59

Closed tjohnman closed 4 months ago

tjohnman commented 5 months ago

OpenRouter's API OpenAI-compatible URL has a trailing /api, which the normalizeEndpoint normally removes, making all requests to OpenRouter fail. This commit makes it so this does not happen.

lmg-anon commented 4 months ago

"Anything that can go wrong, will go wrong", huh. I guess it’s my fault for not taking better care of what was being removed. Thank you for the fix!