diff options
| author | polwex <polwex@sortug.com> | 2025-10-19 12:54:25 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-19 12:54:25 +0700 |
| commit | 8815d3c1d40550470c5bc972bc16bd4966735154 (patch) | |
| tree | 92ef606b568035b9e88d89286be3330f4b84af1e /src/types/index.ts | |
| parent | ba16ebcbe36c1a1cbdb1d1379cb3f9c3a086acdf (diff) | |
Diffstat (limited to 'src/types/index.ts')
| -rw-r--r-- | src/types/index.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/types/index.ts b/src/types/index.ts index f6df6bf..7c76bfc 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,3 +1,4 @@ +import type { ResponseInputFile } from "openai/resources/responses/responses.js"; import type { AsyncRes } from "sortug"; export type ChatMessage = { author: string; @@ -6,7 +7,12 @@ export type ChatMessage = { reasoning?: string; }; -export type InputToken = { text: string } | { img: string }; +export type InputToken = + | { text: string } + | { img: string } + | { file: ResponseInputFile } + | { tools: ToolUseInput[] }; +export type ToolUseInput = any; // TODO // me export type RequestOptions = { textOutput: boolean; |
