@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
21 lines (20 loc) • 747 B
TypeScript
import type { UncertainNumber } from '../UncertainNumber';
import type { Usage } from '../Usage';
/**
* Minimal usage information required to calculate worktime
*/
type PartialUsage = Pick<Usage, 'input' | 'output'> & {
input: Pick<Usage['input'], 'wordsCount'>;
output: Pick<Usage['output'], 'wordsCount'>;
};
/**
* Function usageToWorktime will take usage and estimate saved worktime in hours of reading / writing
*
* Note: This is an estimate based of these sources:
* - https://jecas.cz/doba-cteni
* - https://www.originalnitonery.cz/blog/psani-vsemi-deseti-se-muzete-naucit-i-sami-doma
*
* @public exported from `@promptbook/core`
*/
export declare function usageToWorktime(usage: PartialUsage): UncertainNumber;
export {};