import { fetchExtend } from "https://deno.land/x/simple_openai@v1.3.2/deps.ts";
Extended fetch function that can specify response type directly.
Examples
Example 1
Example 1
const response = await fetchExtend("./asset", "byte");
Type Parameters
T extends keyof ResponseType
Returns
Promise<ResponseType[T]>