llm_dart_provider 0.11.0-alpha.1
llm_dart_provider: ^0.11.0-alpha.1 copied to clipboard
Provider specification contracts and shared provider-facing data structures for llm_dart.
Changelog #
Unreleased #
- Added
ProviderModelFacetSupportso provider facades can declare a narrower registry-visible model facet surface than their concrete class methods imply. - Updated
ProviderRegistryto respect provider-declared model facet support when listing providers and resolving dynamic model references. - Added direct batching facts to
EmbeddingModelandImageModelcontracts:maxEmbeddingsPerCall,supportsParallelCalls, andmaxImagesPerCall. - Expanded the shared image request contract with optional prompt support, aspect ratio, seed, file inputs, masks, and per-image provider metadata.
- Expanded
SpeechGenerationRequestwith sharedoutputFormat,instructions,speed, andlanguagefields. - Made provider-facing
TranscriptionRequest.mediaTyperequired so adapters no longer receive ambiguous audio bytes. - Normalized
ModelWarningwithdeprecatedwarning support plus stablefeatureandsettingtarget fields while preserving legacyfieldserialization compatibility.
0.11.0-alpha.1 - 2026-05-12 #
- Alpha release of the provider contract package.
- Provides shared contracts for prompts, content parts, tools, results, metadata, model capabilities, and stream events.
- Includes UI message/projection types and JSON codecs for prompt, stream, and chat UI transport.
- Most app code reaches these types through
llm_dart; custom provider authors can depend on this package directly. - Treats model interfaces as provider implementation contracts: text models
implement
doGenerate(...)anddoStream(...), embedding models implementdoEmbed(...), and image, speech, and transcription models implementdoGenerate(...). - Defines the input/output boundary explicitly: provider-specific request
controls belong in typed
ProviderInvocationOptionsorProviderPromptPartOptions, whileProviderMetadatais reserved for output observations, replay data, and UI inspection.