Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

FetchWrapper.md

24 lines374 Bytes

type FetchWrapper = (next) => typeof fetch;

Defined in: packages/ai/src/types.ts:1287

Wraps the fetch of a model call. It gets the next fetch and gives back a new fetch. A wrapper can change the URL, the headers, the request, or the response.

Parameters

next

typeof fetch

Returns

typeof fetch