@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
39 lines (38 loc) • 1.53 kB
TypeScript
import type { AvailableModel } from '../../execution/AvailableModel';
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
import type { string_markdown } from '../../types/typeAliases';
import type { string_markdown_text } from '../../types/typeAliases';
import type { string_title } from '../../types/typeAliases';
import { computeOpenAiUsage } from './computeOpenAiUsage';
import { OpenAiCompatibleExecutionTools } from './OpenAiCompatibleExecutionTools';
/**
* Execution Tools for calling OpenAI API
*
* @public exported from `@promptbook/openai`
*/
export declare class OpenAiExecutionTools extends OpenAiCompatibleExecutionTools implements LlmExecutionTools {
get title(): string_title & string_markdown_text;
get description(): string_markdown;
/**
* List all available models (non dynamically)
*
* Note: Purpose of this is to provide more information about models than standard listing from API
*/
protected get HARDCODED_MODELS(): ReadonlyArray<AvailableModel>;
/**
* Computes the usage of the OpenAI API based on the response from OpenAI
*/
protected computeUsage: typeof computeOpenAiUsage;
/**
* Default model for chat variant.
*/
protected getDefaultChatModel(): AvailableModel;
/**
* Default model for completion variant.
*/
protected getDefaultCompletionModel(): AvailableModel;
/**
* Default model for completion variant.
*/
protected getDefaultEmbeddingModel(): AvailableModel;
}