@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
29 lines (28 loc) âĒ 962 B
TypeScript
import type { string_user_id } from '../types/typeAliases';
/**
* Common options shared across various execution tools.
*
* Note: Keep it public to allow people to make their own execution tools
*/
export type CommonToolsOptions = {
/**
* A unique identifier representing your end-user
*
* Note: For example it can help to detect abuse
* For example for OpenAi @see https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids
*/
readonly userId?: string_user_id;
/**
* If true, the internal executions will be logged
*/
readonly isVerbose?: boolean;
/**
* Maximum number of requests per minute
*/
readonly maxRequestsPerMinute?: number;
};
/**
* TODO: [ð§ ][ðĪš] Maybe allow overriding of `userId` for each prompt
* TODO: [ð] Maybe add here `isDeterministic`
* TODO: [ð§ ][ð] Distinct between options passed into ExecutionTools and to ExecutionTools.execute
*/