mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix chat limits update
This commit is contained in:
@@ -191,7 +191,7 @@ export async function sendMessageOnChat(text: string, pid: string, time_offset:
|
||||
|
||||
if (chatMessages && chatMessages.length > 0) {
|
||||
messages.push(...chatMessages);
|
||||
await ProjectLimitModel.updateOne({ project_id: pid }, { $inc: { ai_messages: 1 } })
|
||||
|
||||
await updateChatStatus(chat_id, '', false);
|
||||
} else {
|
||||
const roleMessage: OpenAI.Chat.Completions.ChatCompletionMessageParam = {
|
||||
|
||||
Reference in New Issue
Block a user