v1.7.0
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_reasonhad proper typings in the docs now + addednative_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