@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
38 lines (37 loc) • 1.43 kB
TypeScript
import type { CommonToolsOptions } from '../../execution/CommonToolsOptions';
import type { string_name } from '../../types/typeAliases';
import type { string_token } from '../../types/typeAliases';
import type { string_user_id } from '../../types/typeAliases';
/**
* Options for `createAzureOpenAiExecutionTools` and `AzureOpenAiExecutionTools`
*
* @see https://oai.azure.com/portal/
* @public exported from `@promptbook/azure-openai`
*/
export type AzureOpenAiExecutionToolsOptions = CommonToolsOptions & {
/**
* The API key of the Azure OpenAI resource
*/
readonly apiKey: string_token;
/**
* The resource name of the Azure OpenAI resource
*
* Note: Typically you have one resource and multiple deployments.
*/
readonly resourceName: string_name;
/**
* The deployment name
*
* Note: If you specify modelName in prompt, it will be used instead of deploymentName
* Note: This is kind of a modelName in OpenAI terms
* Note: Typically you have one resource and multiple deployments.
*/
readonly deploymentName: string_name;
/**
* A unique identifier representing your end-user, which can help Azure OpenAI to monitor
* and detect abuse.
*
* @see https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids (document from OpenAI not Azure, but same concept)
*/
readonly userId?: string_user_id;
};