refac: title generation

This commit is contained in:
Timothy J. Baek
2024-10-21 04:24:17 -07:00
parent 24885a2e38
commit e2d4a69750
4 changed files with 36 additions and 26 deletions
+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 })
})
})