mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-11-20 20:18:15 +00:00
feat(types): add message & chunk type
This commit is contained in:
9
src/lib/types.ts
Normal file
9
src/lib/types.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
type Message = {
|
||||||
|
role: 'user' | 'assistant' | 'system';
|
||||||
|
content: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
type Chunk = {
|
||||||
|
content: string;
|
||||||
|
metadata: Record<string, any>;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user