Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_openai/deps.ts>fetchExtend

Simple API connection compatible with OpenAI and AzureOpenAI.
Latest
function fetchExtend
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

const response = await fetchExtend("./asset", "byte");

Parameters

path: string
type: T
optional
option: FetchInit