MCPcopy
hub / github.com/msgbyte/tianji / buildAIRouterOpenAIChatHandler

Function buildAIRouterOpenAIChatHandler

src/server/model/aiRouter.ts:836–844  ·  view source on GitHub ↗
(
  options?: AIRouterRuntimeHandlerOptions
)

Source from the content-addressed store, hash-verified

834}
835
836export function buildAIRouterOpenAIChatHandler(
837 options?: AIRouterRuntimeHandlerOptions
838): RequestHandler {
839 return buildAIRouterRuntimeHandler({
840 protocol: AI_ROUTER_PROTOCOLS.OPENAI_CHAT,
841 schema: openaiRequestSchema,
842 runAttempts: options?.runAttempts,
843 });
844}
845
846export function buildAIRouterOpenAIResponsesHandler(
847 options?: AIRouterRuntimeHandlerOptions

Callers 2

aiRouter.spec.tsFile · 0.85
aiRouter.tsFile · 0.85

Calls 1

Tested by

no test coverage detected