Provides a typed catalogue of language model capabilities for use in LLM extensions.
// Source: https://github.com/nanobrowser/nanobrowser | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Every model fact the extension knows, as data. No model-specific condition lives anywhere else. The file is pure
// TypeScript with type-only imports, so the smoke script (fixtures/smoke-models.mjs) runs it in Node without a build.
import type { LanguageModelCallOptions } from 'ai';
import type { ProviderKind } from './providers';
/** Whether a model reasons, and whether None is accepted on the wire. Absent means unknown. */
export type ReasoningSupport = 'none' | 'optional' | 'always';
/** The one setting the user sees. */
export type ReasoningEffort = 'none' | 'low' | 'mediu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key