import { t as resolveMinimaxThinkingProfile } from "../../thinking-CImIZXQq.js";
//#region extensions/minimax/provider-contract-api.ts
const noopAuth = async () => ({ profiles: [] });
const wizardGroup = {
	groupId: "minimax",
	groupLabel: "MiniMax",
	groupHint: "M3（推荐）"
};
function createMinimaxProvider() {
	return {
		id: "minimax",
		label: "MiniMax",
		hookAliases: ["minimax-cn"],
		docsPath: "/providers/minimax",
		envVars: ["MINIMAX_API_KEY"],
		resolveThinkingProfile: ({ modelId }) => resolveMinimaxThinkingProfile(modelId),
		auth: [{
			id: "api-global",
			kind: "api_key",
			label: "MiniMax API 密钥（国际版）",
			hint: "国际端点 - api.minimax.io",
			run: noopAuth,
			wizard: {
				choiceId: "minimax-global-api",
				choiceLabel: "MiniMax API 密钥（国际版）",
				choiceHint: "国际端点 - api.minimax.io",
				...wizardGroup
			}
		}, {
			id: "api-cn",
			kind: "api_key",
			label: "MiniMax API 密钥（国内版）",
			hint: "国内端点 - api.minimaxi.com",
			run: noopAuth,
			wizard: {
				choiceId: "minimax-cn-api",
				choiceLabel: "MiniMax API 密钥（国内版）",
				choiceHint: "国内端点 - api.minimaxi.com",
				...wizardGroup
			}
		}]
	};
}
function createMinimaxPortalProvider() {
	return {
		id: "minimax-portal",
		label: "MiniMax",
		hookAliases: ["minimax-portal-cn"],
		docsPath: "/providers/minimax",
		envVars: ["MINIMAX_OAUTH_TOKEN", "MINIMAX_API_KEY"],
		resolveThinkingProfile: ({ modelId }) => resolveMinimaxThinkingProfile(modelId),
		auth: [{
			id: "oauth",
			kind: "device_code",
			label: "MiniMax OAuth（国际版）",
			hint: "国际端点 - api.minimax.io",
			run: noopAuth,
			wizard: {
				choiceId: "minimax-global-oauth",
				choiceLabel: "MiniMax OAuth（国际版）",
				choiceHint: "国际端点 - api.minimax.io",
				...wizardGroup
			}
		}, {
			id: "oauth-cn",
			kind: "device_code",
			label: "MiniMax OAuth（国内版）",
			hint: "国内端点 - api.minimaxi.com",
			run: noopAuth,
			wizard: {
				choiceId: "minimax-cn-oauth",
				choiceLabel: "MiniMax OAuth（国内版）",
				choiceHint: "国内端点 - api.minimaxi.com",
				...wizardGroup
			}
		}]
	};
}
//#endregion
export { createMinimaxPortalProvider, createMinimaxProvider };
