Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: linter
Louisf1871ec641c3
diff --git a/web-app/src/lib/custom-chat-transport.ts b/web-app/src/lib/custom-chat-transport.tsindex 4624df6f7..5cef9149e 100644--- a/web-app/src/lib/custom-chat-transport.ts+++ b/web-app/src/lib/custom-chat-transport.ts@@ -387,15 +387,13 @@ export class CustomChatTransport implements ChatTransport<UIMessage> {mapUserInlineAttachments(messages: UIMessage[]): UIMessage[] {return messages.map((message) => {if (message.role === 'user') {+ const metadata = message.metadata as+ | { inline_file_contents?: Array<{ name?: string; content?: string }> }+ | undefinedconst inlineFileContents = Array.isArray(- (message.metadata as any)?.inline_file_contents+ metadata?.inline_file_contents)- ? (- (message.metadata as any)?.inline_file_contents as Array<{- name?: string- content?: string- }>- ).filter((f) => f?.content)+ ? metadata.inline_file_contents.filter((f) => f?.content): []// Tool messages have content as array of ToolResultPartif (inlineFileContents.length > 0) {