UNPKG

openai-mock-api

Version:

A mock OpenAI API server for testing LLM applications

15 lines 622 B
import { Request, Response, NextFunction } from 'express'; import { IAuthenticationService, ILogger } from '../interfaces'; export declare class AuthenticationMiddleware { private authService; private logger; constructor(authService: IAuthenticationService, logger: ILogger); middleware(): (req: Request, res: Response, next: NextFunction) => void; private sendUnauthorized; } export declare class AuthenticationService implements IAuthenticationService { private apiKey; constructor(apiKey: string); validateApiKey(apiKey?: string): boolean; } //# sourceMappingURL=auth.middleware.d.ts.map