feat: add chatbot conversations endpoint

This commit is contained in:
2026-11-14 23:24:10 +03:30
parent 8d6834f44c
commit d572f6b7a2
6 changed files with 89 additions and 0 deletions
@@ -27,6 +27,17 @@ export class ChatbotService {
private readonly openRouterService: OpenRouterService,
) {}
public async getConversations(user: User) {
const conversations =
await this.conversationService.findConversationsByUser(user);
return conversations.map((conversation) => ({
conversationId: conversation.id,
title: conversation.title,
updatedAt: conversation.updatedAt,
}));
}
private async getConversationMessages(
user: User,
message: string,