import { init_providers, resolveModel } from "../../providers/index.js";
//#region src/agent/image/vision-detection.ts
init_providers();
function modelSupportsVision(modelRef) {
	try {
		if (resolveModel(modelRef)?.input?.includes("image")) return true;
	} catch {}
	const knownVisionModels = [
		"gpt-4o",
		"gpt-4-turbo",
		"gpt-4-vision",
		"gpt-4.1",
		"gpt-5",
		"o1",
		"o3",
		"o4-mini",
		"claude-sonnet",
		"claude-opus",
		"claude-haiku",
		"gemini",
		"qwen-vl",
		"qwen2.5-vl",
		"qwen-max-vl",
		"qvq"
	];
	const normalizedRef = modelRef.toLowerCase();
	const modelPart = normalizedRef.includes("/") ? normalizedRef.slice(normalizedRef.indexOf("/") + 1) : normalizedRef;
	return knownVisionModels.some((known) => modelPart.startsWith(known) || modelPart.includes(known));
}
function resolveImageHandlingStrategy(modelRef) {
	return modelSupportsVision(modelRef) ? "native" : "describe";
}
//#endregion
export { modelSupportsVision, resolveImageHandlingStrategy };

//# sourceMappingURL=vision-detection.js.map