31b6f0bf31
- 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.
15 lines
550 B
TypeScript
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;
|