add conversational plugin
Signed-off-by: James <james@jan.ai>
This commit is contained in:
parent
96dba2690d
commit
9130018291
3
web/utils/conversation.ts
Normal file
3
web/utils/conversation.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export const generateConversationId = () => {
|
||||||
|
return `jan-${(Date.now() / 1000).toFixed(0)}`
|
||||||
|
}
|
||||||
@ -25,3 +25,7 @@ export function mergeAndRemoveDuplicates(
|
|||||||
|
|
||||||
return result.reverse()
|
return result.reverse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const generateMessageId = () => {
|
||||||
|
return `m-${Date.now()}`
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user