UNPKG

portkey-ai

Version:
28 lines (27 loc) 2.38 kB
export declare const MISSING_API_KEY_ERROR_MESSAGE = "Portkey API Key Not Found\nResolution: \n1. Get your Portkey API key from https://app.portkey.ai/api-keys \n2. Pass it while instantiating the Portkey client with apiKey param, or set it as an environment variable with export PORTKEY_API_KEY=YOUR_API_KEY\n"; export declare const MISSING_BASE_URL = "No Base url provided. Please provide a valid base url.\nFor example: https://api.portkey.ai\n"; export declare const MISSING_CONFIG_MESSAGE = "The 'config' parameter is not set. Please provide a valid Config object"; export declare const MISSING_MODE_MESSAGE = "The 'mode' parameter is not set. Please provide a valid mode literal."; export declare const INVALID_PORTKEY_MODE = "Argument of type '{}' cannot be assigned to parameter \"mode\" of type \"ModesLiteral | Modes | None\"\n"; export declare const LOCALHOST_CONNECTION_ERROR = "Could not instantiate the Portkey client. You can either add a valid 'apiKey' parameter (from https://app.portkey.ai/api-keys) or set the 'baseURL' parameter to your AI Gateway's instance's URL."; export declare const CUSTOM_HOST_CONNECTION_ERROR = "We could not connect to the AI Gateway's instance. Please check the 'baseURL' parameter in the Portkey client."; export declare const DEFAULT_MAX_RETRIES = 2; export declare const DEFAULT_TIMEOUT = 60; export declare const PORTKEY_HEADER_PREFIX = "x-portkey-"; export declare const PORTKEY_BASE_URL = "https://api.portkey.ai/v1"; export declare const LOCAL_BASE_URL = "http://localhost:8787/v1"; export declare const PORTKEY_GATEWAY_URL = "https://api.portkey.ai/v1"; export declare const PORTKEY_API_KEY_ENV = "PORTKEY_API_KEY"; export declare const PORTKEY_PROXY_ENV = "PORTKEY_PROXY"; export declare const OPEN_AI_API_KEY = "DUMMY-KEY"; export declare const CHAT_COMPLETE_API = "/chat/completions"; export declare const TEXT_COMPLETE_API = "/completions"; export declare const PROMPT_API = "/prompt/complete"; export declare const FEEDBACK_API = "/feedback"; export declare const EMBEDDINGS_API = "/embeddings"; export declare const LOGS_API = "/logs"; export declare const PROMPTS_API = "/prompts"; export declare const PROMPT_PARTIALS_API = "/prompts/partials"; export declare const LABELS_API = "/labels"; export declare const COLLECTIONS_API = "/collections"; export declare const AUDIO_FILE_DURATION_HEADER = "audio-file-duration";