defaultAliasModels (src/spectyraModelAliases.ts)

spectyra · packages/shared/src/spectyraModelAliases.ts · typescript · MIT
ai

TypeScript module mapping stable LLM model aliases to upstream providers.

// Source: https://github.com/ImMrLucky/spectyra | License: MIT | Copyright 2026 Kent Hamilton (Spectyra)
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Stable Spectyra-local model aliases for OpenClaw and other OpenAI-compatible clients.
 *
 * - `spectyra/<smart|fast|quality>` — uses the user's default `provider` + alias models.
 * - `spectyra/<openai|anthropic|groq>/<smart|fast|quality>` — pins upstream vendor for that
 *   call (multi-vendor workflows: e.g. Anthropic for code, OpenAI for research).
 */

export type UpstreamProviderId = "openai" | "anthropic" | "groq";

export type SpectyraTier = "smart" | "fast" | "quality";

export function defaultAliasModels(provider: string): { smart: string; fast: string; quality: string } {
  switch (provider) {
    case "a

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key