Files
oh-my-pi/packages/ai/src/registry/minimax-code.ts
T
can1357 31b6f0bf31 refactor(ai): consolidated provider config into single-source registry
- Derived descriptors, default-model map, env keys, login list, and refresh dispatch from one ProviderDefinition per provider.
- Disabled OpenAI Codex stream obfuscation and interrupted whitespace-only tool-call argument deltas.
- Derived auth-broker callback ports and paste-code login set from the registry.
2026-06-08 18:48:43 +02:00

15 lines
550 B
TypeScript

import type { OAuthLoginCallbacks } from "./oauth/types";
import type { ProviderDefinition } from "./types";
export const minimaxCodeProvider = {
id: "minimax-code",
name: "MiniMax Coding Plan (International)",
defaultModel: "MiniMax-M2.5",
envKeys: "MINIMAX_CODE_API_KEY",
login: async (cb: OAuthLoginCallbacks) => {
// Lazy import: keep heavy OAuth flow modules out of the eager registry graph.
const { loginMiniMaxCode } = await import("./oauth/minimax-code");
return loginMiniMaxCode(cb);
},
} as const satisfies ProviderDefinition;