summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-07-23 06:44:51 +0700
committerpolwex <polwex@sortug.com>2025-07-23 06:44:51 +0700
commite1e01fe1c702e33509a276eb1da6efc720c21164 (patch)
tree1a3e0c8cf180a2e82ae8c4ecac62298ae865207b /src/types
parent9766782648617e232fbc4e40ea96a0e567c7cc73 (diff)
m
Diffstat (limited to 'src/types')
-rw-r--r--src/types/index.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/types/index.ts b/src/types/index.ts
index 6c16e0d..1e4d57d 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -22,9 +22,12 @@ export interface AIModelAPI {
tokenizer: (text: string) => number;
maxTokens: number;
- send: (input: string, systemPrompt?: string) => AsyncRes<string>;
+ send: (
+ input: string | InputToken[],
+ systemPrompt?: string,
+ ) => AsyncRes<string>;
stream: (
- input: string,
+ input: string | InputToken[],
handler: (data: string) => void,
systemPrompt?: string,
) => void;