adjust attachments to hopefully fix them?

This commit is contained in:
Frederik Spirgi
2026-09-23 11:06:46 +02:00
parent b8399155dd
commit 4380f1f3d8
11 changed files with 305 additions and 62 deletions
+5
View File
@@ -243,6 +243,7 @@ export function createChatsRouter({repositories, chatService, modelService, conf
try {
const result = await chatService.editAndResendMessage({
user: req.session.user,
requestId: req.id,
chatId,
targetMessage,
content: req.validatedBody.message,
@@ -421,6 +422,7 @@ export function createChatsRouter({repositories, chatService, modelService, conf
try {
const result = await chatService.sendChatMessage({
user: req.session.user,
requestId: req.id,
chatId: req.validatedBody.chatId,
message: req.validatedBody.message,
attachments: req.validatedBody.attachments,
@@ -458,6 +460,7 @@ export function createChatsRouter({repositories, chatService, modelService, conf
try {
const result = await chatService.streamChatMessage({
user: req.session.user,
requestId: req.id,
chatId: req.validatedBody.chatId,
message: req.validatedBody.message,
attachments: req.validatedBody.attachments,
@@ -519,6 +522,7 @@ export function createChatsRouter({repositories, chatService, modelService, conf
try {
const result = await chatService.retryMessage({
user: req.session.user,
requestId: req.id,
chatId,
selectedModel: String(req.body?.model || "qwen3:14b"),
targetMessage,
@@ -559,6 +563,7 @@ export function createChatsRouter({repositories, chatService, modelService, conf
try {
const result = await chatService.retryMessage({
user: req.session.user,
requestId: req.id,
chatId,
selectedModel: String(req.body?.model || "qwen3:14b"),
targetMessage,