Skip to content

PresetRoute

Defined in: core/src/presets.ts:44

One wire a preset serves besides its own. A gateway that puts different models on different wires (OpenCode Go) lists the exceptions here, and the preset’s own shape and baseUrl serve every other model.

optional auth?: PresetAuth;

Defined in: core/src/presets.ts:51

Defaults to the preset’s auth.


baseUrl: string;

Defined in: core/src/presets.ts:48


optional path?: string;

Defined in: core/src/presets.ts:49


prefixes: readonly string[];

Defined in: core/src/presets.ts:46

The model ids this route serves, matched by prefix.


shape: PresetShape;

Defined in: core/src/presets.ts:47