effect@4.0.0-beta.34
Pre-releasePatch Changes
-
#1758
f2f75eeThanks @tim-smart! - Use a normal Map in ResponseIdTracker and clear it on divergence / reset instead of reallocating a WeakMap. -
#1764
342fc4bThanks @tim-smart! - Add unstable EmbeddingModel support across core and OpenAI providers.- Add the unstable EmbeddingModel module API surface in
effect, including service, request, response, and provider types. - Implement the unstable EmbeddingModel runtime constructor in
effect, withRequestResolverbatching,embed/embedManyspans, provider error propagation, deterministic ordering, and empty-inputembedManyfast-path behavior. - Add and align EmbeddingModel behavior tests in
effectfor embedding usage, batching, ordering, and error handling. - Add
OpenAiEmbeddingModelin@effect/ai-openai, including model / make / layer constructors, config overrides, and provider output index validation with deterministic reordering. - Add OpenAI-compatible EmbeddingModel provider support in
@effect/ai-openai-compat, including config overrides, layer constructors, and output index validation.
- Add the unstable EmbeddingModel module API surface in
-
#1766
5d704eeThanks @tim-smart! - Fix JSDoc wording forEffect.catchto consistently reference the current API name. -
#1771
00add69Thanks @tim-smart! - AddEmbeddingModel.ModelDimensionsand require dimensions in embedding providermodelconstructors. -
#1767
58217d3Thanks @gcanti! - AddisMutableHashMapandisMutableHashSet, and align nominal guard implementations and tests across collections and transactional data types. -
#1765
f4e2abaThanks @tim-smart! - retry incremental prompt on invalid request -
#1756
e3b44b6Thanks @tim-smart! - add HttpApiMiddleware.layerSchemaErrorTransform -
#1732
e1472b7Thanks @KhraksMamtsov! - port Url module from v3 -
#1761
7686320Thanks @gcanti! - FixTool.maketype and runtime behavior whenparametersis not provided.