github QuantumNous/new-api v0.12.2

8 hours ago

New Features

  • Add support for PDF conversion between OpenAI and Claude APIs.
  • Support differential billing for Seedance 2.0 based on video vs. no-video input.
  • Enhance max_tokens handling and input sanitization in the playground (#4106).
  • Enhance stream status display with error tooltips in usage logs.

Bug Fixes

  • Fix usage calculation issues when converting between Claude and OpenAI APIs by emitting message_delta for the final stream chunk (#4090).
  • Fix Gemini stream detection by checking the :streamGenerateContent URL path (#4087).
  • Fix Claude request requirements by properly setting TopP to nil.

Improvements

  • Unify file source creation and enhance caching mechanisms.

What's Changed

  • fix(gemini): detect streaming from URL path :streamGenerateContent by @D26FORWARD in #4087
  • fix: emit claude message_delta for usage-only final stream chunk by @seefs001 in #4090
  • chore(deps-dev): bump electron from 35.7.5 to 39.8.5 in /electron by @dependabot[bot] in #4080
  • chore(deps-dev): bump @xmldom/xmldom from 0.8.11 to 0.8.12 in /electron by @dependabot[bot] in #3523
  • chore(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /electron by @dependabot[bot] in #4097
  • feat(playground): enhance max_tokens handling and input sanitization by @HynoR in #4106

New Contributors

Full Changelog: v0.12.1...v0.12.2

Don't miss a new new-api release

NewReleases is sending notifications on new releases.