Skip to content

v1.21.0

Compare
Choose a tag to compare
@waylaidwanderer waylaidwanderer released this 27 Feb 07:38
· 292 commits to main since this release

Fixes

BREAKING CHANGES:

  • api: JSON-encode tokens when streaming to retain characters such as newlines properly

Non-breaking:

  • client/browser-client: Don't attempt to parse ping events
  • client: Set headers timeout to 3 minutes
  • browser-client: Ignore any messages not from assistant role
  • browser-client: Handle non-existent conversation IDs when fetching cache
  • browser-client: Handle null lastEvent on close, fixes #98, #99
  • api: Use setTimeout instead of nextTick to avoid ERR_STREAM_WRITE_AFTER_END
  • api: Use my sse fork to avoid sending unnecessary retryAfter event
  • api: Don't send [DONE] twice
  • bing: Handle invalid session error, fixes #90

Misc.

  • cli: Explicitly set bin files to LF, fixes #51
  • docs: Reformat example settings a little bit
  • docs: Replace examples already in demos folder with link
  • docs: Add clarification on how maxPromptTokens works

New Contributors

Full Changelog: v1.20.0...v1.21.0