mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 08:20:14 +01:00
🛠️ fix: Minor Fixes in Message, Ask/EditController, OpenAIClient, and countTokens (#1463)
* fix(Message): avoid overwriting unprovided properties * fix(OpenAIClient): return intermediateReply on user abort * fix(AskController): do not send/save final message if abort was triggered * fix(countTokens): avoid fetching remote registry and exclusively use cl100k_base or p50k_base weights for token counting * refactor(Message/messageSchema): rely on messageSchema for default values when saving messages * fix(EditController): do not send/save final message if abort was triggered * fix(config/helpers): fix module resolution error
This commit is contained in:
parent
e4c555f95a
commit
431fc6284f
7 changed files with 37 additions and 31 deletions
|
|
@ -6,7 +6,8 @@ const fs = require('fs');
|
|||
const path = require('path');
|
||||
const readline = require('readline');
|
||||
const { execSync } = require('child_process');
|
||||
const { connectDb } = require('@librechat/backend/lib/db');
|
||||
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
|
||||
const connectDb = require('~/lib/db/connectDb');
|
||||
|
||||
const askQuestion = (query) => {
|
||||
const rl = readline.createInterface({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue