(args: {
protocol: AIRouterProtocol;
node: AIRouterAttemptNode;
})
| 1457 | } |
| 1458 | |
| 1459 | function buildAIRouterGatewayHandlerForNode(args: { |
| 1460 | protocol: AIRouterProtocol; |
| 1461 | node: AIRouterAttemptNode; |
| 1462 | }): RequestHandler | null { |
| 1463 | const config = resolveAIRouterGatewayHandlerConfig({ |
| 1464 | protocol: args.protocol, |
| 1465 | modelProvider: getAIRouterNodeProvider(args.node), |
| 1466 | }); |
| 1467 | |
| 1468 | return config ? buildAIRouterGatewayHandler(config) : null; |
| 1469 | } |
| 1470 | |
| 1471 | function buildAIRouterGatewayHandler( |
| 1472 | config: AIRouterGatewayHandlerConfig |
no test coverage detected