export const DEFAULT_AVAILABLE_THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh"];
export function serializeAvailableModels(models) {
    return [...models]
        .sort((left, right) => {
        const providerCompare = left.provider.localeCompare(right.provider);
        if (providerCompare !== 0) {
            return providerCompare;
        }
        return left.id.localeCompare(right.id);
    })
        .map((model) => {
        const hubModel = model;
        return {
            resourceId: hubModel.resourceId ?? `${hubModel.provider}:${hubModel.id}`,
            providerResourceId: hubModel.providerResourceId,
            provider: model.provider,
            modelId: model.id,
            label: model.name,
            reasoning: model.reasoning,
            contextWindow: model.contextWindow,
        };
    });
}
//# sourceMappingURL=session-options.js.map