refac: title generation

This commit is contained in:
Timothy J. Baek committed 2024-10-21 04:24:17 -07:00
1 parent 24885a2e38
commit e2d4a69750
4 files changed
+36 -26

No files matched your search

+2 -2
View File
@@ -208,7 +208,7 @@ export const updateTaskConfig = async (token: string, config: object) => {
export const generateTitle = async (
token: string = '',
model: string,
prompt: string,
messages: string[],
chat_id?: string
) => {
let error = null;
@@ -222,7 +222,7 @@ export const generateTitle = async (
},
body: JSON.stringify({
model: model,
prompt: prompt,
messages: messages,
...(chat_id && { chat_id: chat_id })
})
})