/**
 * Virtual Router 类型定义
 */
export const DEFAULT_MODEL_CONTEXT_TOKENS = 200_000;
export const DEFAULT_ROUTE = 'default';
export const ROUTE_PRIORITY = [
    'multimodal',
    'vision',
    'longcontext',
    'web_search',
    'thinking',
    'coding',
    'search',
    'tools',
    'background',
    DEFAULT_ROUTE
];
export var VirtualRouterErrorCode;
(function (VirtualRouterErrorCode) {
    VirtualRouterErrorCode["NO_STANDARDIZED_REQUEST"] = "NO_STANDARDIZED_REQUEST";
    VirtualRouterErrorCode["ROUTE_NOT_FOUND"] = "ROUTE_NOT_FOUND";
    VirtualRouterErrorCode["PROVIDER_NOT_AVAILABLE"] = "PROVIDER_NOT_AVAILABLE";
    VirtualRouterErrorCode["CONFIG_ERROR"] = "CONFIG_ERROR";
})(VirtualRouterErrorCode || (VirtualRouterErrorCode = {}));
export class VirtualRouterError extends Error {
    code;
    details;
    constructor(message, code, details) {
        super(message);
        this.code = code;
        this.details = details;
        this.name = 'VirtualRouterError';
    }
}
