AI Model Metadata Definition (types/index.ts)

openchamber · packages/ui/src/types/index.ts · typescript · MIT
ai, lang:typescript, tag:metadata, tag:config

Defines TypeScript interfaces and types for AI model capabilities, pricing, and resource limits. Use when building LLM integration layers or model catalogs.

// Source: https://github.com/openchamber/openchamber | License: MIT | Copyright 2025 Bohdan Triapitsyn
// Provided via justclaw.it.com; keep this notice with the code.
export type {
  QuotaProviderId,
  UsageWindow,
  UsageWindows,
  ProviderResult
} from './quota';

export interface ModelMetadata {
  id: string;
  providerId: string;
  name?: string;
  tool_call?: boolean;
  reasoning?: boolean;
  temperature?: boolean;
  attachment?: boolean;
  /**
   * Whether the model can be constrained to a JSON schema. Tri-state on
   * purpose: `undefined` means the catalog does not say — common for
   * aggregators and proxies — and must be treated as "worth trying", never as
   * unsupported.
   */
  structured_output?: boolean;
  modalities?: {
    input?: string[];
    output?: string[];
  };


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

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

Get a free API key