@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
13 lines (12 loc) • 506 B
TypeScript
import type { string_url } from '../types/typeAliases';
/**
* Fetch function used in Promptbook engine
*
* In most cases it is just native `fetch` function with a lightweight error handling wrapper
* But it can be replaced with any other fetch function, polyfill, custom implementation, security layer, etc.
*
* It is used in these places:
* - Fetching knowledge sources
* - Callbacks from remote server
*/
export type PromptbookFetch = (url: string_url, init?: RequestInit) => Promise<Response>;