fix: linter

This commit is contained in:
Louis 2024-12-16 17:41:54 +07:00
parent bb106eba01
commit f18207f21c
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -329,7 +329,7 @@ export default function ModelHandler() {
if (!threadMessages || threadMessages.length === 0) return if (!threadMessages || threadMessages.length === 0) return
const summarizeFirstPrompt = `Summarize in a ${maxWordForThreadTitle}-word Title. Give the title only. "${threadMessages[0].content[0].text.value}"` const summarizeFirstPrompt = `Summarize in a ${maxWordForThreadTitle}-word Title. Give the title only. "${threadMessages[0]?.content[0]?.text?.value}"`
// Prompt: Given this query from user {query}, return to me the summary in 10 words as the title // Prompt: Given this query from user {query}, return to me the summary in 10 words as the title
const msgId = ulid() const msgId = ulid()
@ -346,6 +346,7 @@ export default function ModelHandler() {
id: msgId, id: msgId,
threadId: message.thread_id, threadId: message.thread_id,
type: MessageRequestType.Summary, type: MessageRequestType.Summary,
attachments: [],
messages, messages,
model: { model: {
...activeModelRef.current, ...activeModelRef.current,