selectAutoSetupPlans (services/autoSetupPlan.ts)

OGAM · src/services/autoSetupPlan.ts · typescript · MIT
voice

Module exposing: selectAutoSetupPlans, choose, chooseText, selectAutoSetupPlan

// Source: https://github.com/off-grid-ai/OGAM | License: MIT | Copyright 2026 Mohammed Ali Chherawalla
// Provided via justclaw.it.com; keep this notice with the code.
import type { ModelFile } from '../types';
import type { ImageModelDescriptor } from './imageModelDownloadTypes';

export type AutoSetupTier = 'lean' | 'balanced' | 'extreme';
type AutoSetupModelKind = 'text' | 'image' | 'stt';

interface AutoSetupCandidate<T = unknown> {
  id: string;
  name: string;
  kind: AutoSetupModelKind;
  sizeBytes: number;
  fitScore: number;
  parameterCountB?: number;
  payload: T;
}

export interface AutoSetupPlan {
  tier: AutoSetupTier;
  title: string;
  summary: string;
  items: readonly [
    AutoSetupCandidate<{ modelId: string; file: ModelFile }>,
    AutoSetupCandidate<ImageModelDescrip

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

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

Get a free API key