fix: linter
This commit is contained in:
parent
bb106eba01
commit
f18207f21c
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user