Skip to content

LLMistOptions

Defined in: core/client.ts:19

optional adapters: ProviderAdapter[]

Defined in: core/client.ts:23

Provider adapters to register manually.


optional autoDiscoverProviders: boolean

Defined in: core/client.ts:32

Automatically discover built-in providers based on environment configuration. Enabled by default.


optional customModels: ModelSpec[]

Defined in: core/client.ts:56

Custom model specifications to register at initialization. Use this to define models not in the built-in catalog, such as:

  • Fine-tuned models with custom pricing
  • New models not yet supported by llmist
  • Custom deployments with different configurations
new LLMist({
customModels: [{
provider: "openai",
modelId: "ft:gpt-4o-2024-08-06:my-org:custom:abc123",
displayName: "My Fine-tuned GPT-4o",
contextWindow: 128_000,
maxOutputTokens: 16_384,
pricing: { input: 7.5, output: 30.0 },
knowledgeCutoff: "2024-08",
features: { streaming: true, functionCalling: true, vision: true }
}]
});

optional defaultProvider: string

Defined in: core/client.ts:27

Default provider prefix applied when a model identifier omits it.