proxy/proxy-types.ts

llm-gateway · packages/backend/src/routing/proxy/proxy-types.ts · typescript · MIT
ai

proxy-types.ts from mnfst/llm-gateway

// Source: https://github.com/mnfst/llm-gateway | License: MIT | Copyright 2026 MNFST, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { IncomingHttpHeaders } from 'http';
import type { RecordingResponseBody } from './attempt-recording.types';
import { ProviderEndpoint } from './provider-endpoints';
import type { AttemptRecordingCapture } from './attempt-recording-capture';
import type { ThinkingBlock, ThinkingBlockRouteContext } from './thinking-block-cache';
import { CallerAttribution } from './caller-classifier';

/**
 * Optional lookup to re-inject cached thought_signature values that were
 * stripped by the client. Called with a tool_call id; returns the cached
 * signature or null.
 */
export type SignatureLookup = (toolCallId: string) => string | nul

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key