diff options
| author | polwex <polwex@sortug.com> | 2025-07-23 06:44:51 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-07-23 06:44:51 +0700 |
| commit | e1e01fe1c702e33509a276eb1da6efc720c21164 (patch) | |
| tree | 1a3e0c8cf180a2e82ae8c4ecac62298ae865207b /src/types | |
| parent | 9766782648617e232fbc4e40ea96a0e567c7cc73 (diff) | |
m
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/index.ts | 7 |
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; |
