UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

47 lines (46 loc) 1.36 kB
import type { ModelVariant } from '../types/ModelVariant'; import type { number_usd } from '../types/typeAliases'; import type { string_model_description } from '../types/typeAliases'; import type { string_model_name } from '../types/typeAliases'; import type { string_title } from '../types/typeAliases'; /** * Represents a model that can be used for prompt execution */ export type AvailableModel = { /** * The model title, when not provided, the `modelName` should be used * * @example "GPT o1" */ readonly modelTitle?: string_title; /** * The model name aviailable * * @example "o1" */ readonly modelName: string_model_name; /** * Variant of the model * * @example "CHAT" */ readonly modelVariant: ModelVariant; /** * Unstructured description of the model * * This will be used to pick the best available model for each task * * @example "Model with 1 billion parameters and advanced reasoning capabilities" */ readonly modelDescription?: string_model_description; /** * Pricing information for the model */ readonly pricing?: { readonly prompt: number_usd; readonly output: number_usd; }; }; /** * TODO: [🧠] Maybe rename to something else - like `ModelInformation` or `ModelMetadata` */