@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
22 lines (20 loc) • 657 B
text/typescript
export type ProxyTRPCRequestParams = {
/** Request body (can be string, ArrayBuffer, or null/undefined) */
body?: string | ArrayBuffer;
/** Request headers */
headers: Record<string, string>;
/** The HTTP method (e.g., 'GET', 'POST') */
method: string;
/** The path and query string of the request (e.g., '/trpc/lambda/...') */
urlPath: string;
};
export interface ProxyTRPCRequestResult {
/** Response body (likely as ArrayBuffer or string) */
body: ArrayBuffer | string;
/** Response headers */
headers: Record<string, string>;
/** Response status code */
status: number;
/** Response status text */
statusText: string;
}