import { listModels } from '../storage/llm-store.js';
export function getThinkingRuntimeConfig(preset) {
    const modelId = preset.modelId?.trim();
    if (!modelId) {
        return {
            thinkingEnabled: true,
            thinkingEffort: 'medium',
        };
    }
    const model = listModels().find((item) => item.modelId === modelId || item.name === modelId);
    return {
        thinkingEnabled: model?.thinkingEnabled ?? true,
        thinkingEffort: model?.thinkingEffort ?? 'medium',
    };
}
//# sourceMappingURL=llm-model-config.js.map