LLMistOptions
Defined in: core/client.ts:19
Properties
Section titled “Properties”adapters?
Section titled “adapters?”
optionaladapters:ProviderAdapter[]
Defined in: core/client.ts:23
Provider adapters to register manually.
autoDiscoverProviders?
Section titled “autoDiscoverProviders?”
optionalautoDiscoverProviders:boolean
Defined in: core/client.ts:32
Automatically discover built-in providers based on environment configuration. Enabled by default.
customModels?
Section titled “customModels?”
optionalcustomModels: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
Example
Section titled “Example”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 } }]});defaultProvider?
Section titled “defaultProvider?”
optionaldefaultProvider:string
Defined in: core/client.ts:27
Default provider prefix applied when a model identifier omits it.