summaryrefslogtreecommitdiff
path: root/src/types/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/index.ts')
-rw-r--r--src/types/index.ts8
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;