const PROVIDER_DEFAULTS = {
  anthropic: "claude-haiku-4-5",
  openai: "gpt-4o-mini",
  gemini: "gemini-2.5-flash-lite",
  groq: "llama-3.3-70b-versatile"
};
const PROVIDER_ENV = {
  anthropic: "WIGOLO_LLM_MODEL_ANTHROPIC",
  openai: "WIGOLO_LLM_MODEL_OPENAI",
  gemini: "WIGOLO_LLM_MODEL_GEMINI",
  groq: "WIGOLO_LLM_MODEL_GROQ"
};
function resolveModel(provider, callerOverride, env = process.env) {
  if (callerOverride) return callerOverride;
  const providerSpecific = env[PROVIDER_ENV[provider]];
  if (providerSpecific) return providerSpecific;
  const universal = env.WIGOLO_LLM_MODEL;
  if (universal) return universal;
  return PROVIDER_DEFAULTS[provider];
}
function providerModelEnvVar(provider) {
  return PROVIDER_ENV[provider];
}
function providerDefaultModel(provider) {
  return PROVIDER_DEFAULTS[provider];
}
export {
  providerDefaultModel,
  providerModelEnvVar,
  resolveModel
};
//# sourceMappingURL=model-select.js.map