LibreChat/api/app/clients/prompts
Danny Avila 379e470e38
🧹fix: Handle Abort Message Edge Cases (#1462)
* chore: bump langchain to v0.0.213 from v0.0.186

* fix: handle abort edge cases:
- abort message server-side if response experienced error mid-generation
- attempt to recover message if aborting resulted in error
- if abortKey is not provided, use conversationId if it exists
- if headers were already sent, send an Event stream message
- issue warning for possible Google censor/filter

refactor(streamResponse): for `sendError`, allow passing overrides so that error can include partial generation, improve typing for `sendMessage`

* chore(MessageContent): remove eslint warning for unused `i`, rephrase unfinished message text

* fix(useSSE): avoid invoking cancelHandler if the abort response was 404

* chore(TMessage): remove unnecessary, unused legacy message property `submitting`

* chore(TMessage): remove unnecessary legacy message property `cancelled`

* chore(abortMiddleware): remove unused `errorText` property to avoid confusion
2023-12-30 12:34:23 -05:00
..
formatGoogleInputs.js feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
formatGoogleInputs.spec.js feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
formatMessages.js feat: Vision Support + New UI (#1203) 2023-11-21 20:12:48 -05:00
formatMessages.spec.js 🧹fix: Handle Abort Message Edge Cases (#1462) 2023-12-30 12:34:23 -05:00
handleInputs.js feat: ConversationSummaryBufferMemory (#973) 2023-09-26 21:02:28 -04:00
index.js feat: ConversationSummaryBufferMemory (#973) 2023-09-26 21:02:28 -04:00
instructions.js ci(backend-review.yml): add linter step to the backend review workflow (#625) 2023-07-14 09:36:49 -04:00
summaryPrompts.js feat: Accurate Token Usage Tracking & Optional Balance (#1018) 2023-10-05 18:34:10 -04:00
titlePrompts.js feat: Add Option to Disable Titling, Config Titling Model, and Title Prompt Improvements (#977) 2023-09-20 18:45:56 -04:00
truncateText.js feat: Add Option to Disable Titling, Config Titling Model, and Title Prompt Improvements (#977) 2023-09-20 18:45:56 -04:00