/** * OpenAI safety identifier utilities. * * This module provides utilities for handling the OpenAI safety_identifier parameter, * which is used to track guardrails library usage for monitoring and abuse detection. * * The safety identifier is only supported by the official OpenAI API and should not * be sent to Azure OpenAI or other OpenAI-compatible providers. */ import type OpenAI from 'openai'; /** * OpenAI safety identifier for tracking guardrails library usage. */ export declare const SAFETY_IDENTIFIER = "openai-guardrails-js"; /** * Check if the client supports the safety_identifier parameter. * * Only the official OpenAI API supports this parameter. * Azure OpenAI and local/alternative providers (Ollama, vLLM, etc.) do not. * * @param client The OpenAI client instance to check * @returns True if safety_identifier should be included in API calls, False otherwise * * @example * ```typescript * import OpenAI from 'openai'; * import { supportsSafetyIdentifier } from './safety-identifier'; * * const client = new OpenAI(); * console.log(supportsSafetyIdentifier(client)); // true * * const localClient = new OpenAI({ baseURL: 'http://localhost:11434' }); * console.log(supportsSafetyIdentifier(localClient)); // false * ``` */ export declare function supportsSafetyIdentifier(client: OpenAI | unknown): boolean; //# sourceMappingURL=safety-identifier.d.ts.map