UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

77 lines (76 loc) 2.87 kB
import type { PipelineJson } from './pipeline/PipelineJson/PipelineJson'; import type { ExportJsonOptions } from './utils/serialization/exportJson'; /** * How is the model provider trusted? * * @public exported from `@promptbook/core` */ export declare const MODEL_TRUST_LEVELS: { readonly FULL: "Model is running on the local machine, training data and model weights are known, data are ethically sourced"; readonly OPEN: "Model is open source, training data and model weights are known"; readonly PARTIALLY_OPEN: "Model is open source, but training data and model weights are not (fully) known"; readonly CLOSED_LOCAL: "Model can be run locally, but it is not open source"; readonly CLOSED_FREE: "Model is behind API gateway but free to use"; readonly CLOSED_BUSINESS: "Model is behind API gateway and paid but has good SLA, TOS, privacy policy and in general is a good to use in business applications"; readonly CLOSED: "Model is behind API gateway and paid"; readonly UNTRUSTED: "Model has questions about the training data and ethics, but it is not known if it is a problem or not"; readonly VURNABLE: "Model has some known serious vulnerabilities, leaks, ethical problems, etc."; }; /** * How is the model provider important? * * @public exported from `@promptbook/core` */ export declare const MODEL_ORDERS: { /** * Top-tier models, e.g. OpenAI, Anthropic,... */ readonly TOP_TIER: 333; /** * Mid-tier models, e.g. Llama, Mistral, etc. */ readonly NORMAL: 100; /** * Low-tier models, e.g. Phi, Tiny, etc. */ readonly LOW_TIER: 0; }; /** * Order of keys in the pipeline JSON * * @public exported from `@promptbook/core` */ export declare const ORDER_OF_PIPELINE_JSON: ExportJsonOptions<PipelineJson>['order']; /** * Nonce which is used for replacing things in strings * * @private within the repository */ export declare const REPLACING_NONCE = "ptbkauk42kV2dzao34faw7FudQUHYPtW"; /** * Nonce which is used as string which is not occurring in normal text * * @private within the repository */ export declare const SALT_NONCE = "ptbkghhewbvruets21t54et5"; /** * Placeholder value indicating a parameter is missing its value. * * @private within the repository */ export declare const RESERVED_PARAMETER_MISSING_VALUE: string; /** * Placeholder value indicating a parameter is restricted and cannot be used directly. * * @private within the repository */ export declare const RESERVED_PARAMETER_RESTRICTED: string; /** * The names of the parameters that are reserved for special purposes * * @public exported from `@promptbook/core` */ export declare const RESERVED_PARAMETER_NAMES: readonly ["content", "context", "knowledge", "examples", "modelName", "currentDate"]; /** * Note: [💞] Ignore a discrepancy between file name and entity name */