UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

17 lines (16 loc) 595 B
/** * 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 {};