v1.21.0
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
- @ryanwy made their first contribution in #100
- @gengjiawen made their first contribution in #117
Full Changelog: v1.20.0...v1.21.0