@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 424 B
TypeScript
export type BatchHttpClientConfig = {
baseUrl?: string;
headers?: Record<string, string>;
};
export declare function normalizeBatchBaseUrl(client: BatchHttpClientConfig): string;
export declare function buildBatchHeaders(client: Pick<BatchHttpClientConfig, "headers">, params: {
json: boolean;
}): Record<string, string>;
export declare function splitBatchRequests<T>(requests: T[], maxRequests: number): T[][];