Skip to content

v1.7.0

Choose a tag to compare

@eofreternal eofreternal released this 29 Dec 01:01
· 5 commits to master since this release

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 }

Full Changelog: v1.6.0...v1.7.0