@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
17 lines (16 loc) • 595 B
TypeScript
/**
* String value found on OpenAI and Anthropic Claude page
*
* @see https://openai.com/api/pricing/
* @see https://docs.anthropic.com/en/docs/models-overview
*
* @private within the repository, used only as internal helper for `OPENAI_MODELS` and `computeUsage`
*/
type string_model_price = `$${number}.${number} / ${number}M tokens`;
/**
* Create price per one token based on the string value found on openai page
*
* @private within the repository, used only as internal helper for `OPENAI_MODELS`
*/
export declare function pricing(value: string_model_price): number;
export {};