From 8815d3c1d40550470c5bc972bc16bd4966735154 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 19 Oct 2025 12:54:25 +0700 Subject: new openai responses api and some claude made tests --- src/types/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/types/index.ts') 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; -- cgit v1.2.3