UNPKG

ollama-api-facade-js

Version:

OllamaApiFacadeJS is an open-source library for running an ExpressJS backend as an Ollama API using LangChainJS. It supports local language models services like LmStudio and allows seamless message conversion and streaming between LangChainJS and Ollama c

8 lines 431 B
import { Request, Response, NextFunction } from 'express'; /** * Middleware for logging JSON requests and responses. * This middleware logs the details of incoming requests and outgoing responses to the console. * It helps in monitoring and debugging API interactions. */ export declare const jsonRequestLogger: (request: Request, response: Response, next: NextFunction) => void; //# sourceMappingURL=jsonRequestLogger.d.ts.map