Eternal

Shipped this project!

Hours: 1.77
Cookies: 🍪 36
Multiplier: 20.32 cookies/hr

Updated my OpenRouter client NPM package to be more up-to-date with OpenRouter’s API :p

I didn’t learn much, I just thought this would be a good time to get around to this since its been on my todo list for a while. But now future-me can have a better time building things with OpenRouter because he can upload audio and whatnot now :D

Eternal

Added "usage": { "include": true } support to the config

Attachment
0
Eternal

I caught the wrapper up to speed with the current state of OpenRouter’s APIs for the most part

Added functionality

  • Audio uploads
  • Image gen
  • Proper plugin support
  • Fetch usage data for current API key
  • add getGenerationStats and getKeyUsage to OpenRouterStream

Bug fixes

  • I forgot to let people upload PDFs when I added PDF support lol
  • I forgot to make getGenerationStats send the auth token when I made that function
  • OpenRouter changed their API so finish_reason had proper typings in the docs now + added native_finish_reason

Misc

  • Types are easier to use now because they’re more individually exportable

TODO

  • Let users use "usage": { "include": true }
Attachment
Attachment
Attachment
0