mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
11 lines
373 B
TypeScript
11 lines
373 B
TypeScript
import type { ApiConfiguration, ApiHandler } from "../types.d.ts";
|
|
import { OpenRouterHandler } from "./providers/openrouter.ts";
|
|
|
|
// Re-export the ApiHandler interface
|
|
export type { ApiHandler };
|
|
|
|
export function buildApiHandler(configuration: ApiConfiguration): ApiHandler {
|
|
const { apiKey, model } = configuration;
|
|
return new OpenRouterHandler({ apiKey, model });
|
|
}
|