github Effect-TS/effect-smol @effect/ai-openai@4.0.0-beta.34

Patch Changes

  • #1759 8feecd2 Thanks @tim-smart! - Ensure OpenAiSocket sends a {"type":"response.cancel"} websocket event when a response stream is interrupted.

  • #1764 342fc4b Thanks @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, with RequestResolver batching, embed / embedMany spans, provider error propagation, deterministic ordering, and empty-input embedMany fast-path behavior.
    • Add and align EmbeddingModel behavior tests in effect for embedding usage, batching, ordering, and error handling.
    • Add OpenAiEmbeddingModel in @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.
  • #1771 00add69 Thanks @tim-smart! - Add EmbeddingModel.ModelDimensions and require dimensions in embedding provider model constructors.

  • #1765 f4e2aba Thanks @tim-smart! - retry incremental prompt on invalid request

  • #1760 273f4c6 Thanks @tim-smart! - handle openai ws error events

  • Updated dependencies [f2f75ee, 342fc4b, 5d704ee, 00add69, 58217d3, f4e2aba, e3b44b6, e1472b7, 7686320]:

    • effect@4.0.0-beta.34

Don't miss a new effect-smol release

NewReleases is sending notifications on new releases.