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

Minor Changes

  • #2059 6f73f92 Thanks @tim-smart! - Add a new public OpenAiSchema module with minimal local schemas for responses, streaming SSE events (including unknown-event fallback), and embeddings.

Patch Changes

  • #2059 6f73f92 Thanks @tim-smart! - Add a new OpenAiClientGenerated module that exposes the generated OpenAI client as a dedicated context service with make, layer, and layerConfig constructors. This provides a compatibility path for direct generated-client access while preserving existing auth, base URL, header, and OpenAiConfig.transformClient wiring.

  • #2059 6f73f92 Thanks @tim-smart! - Refactor OpenAiClient to the handwritten minimal-schema path so client now exposes the configured HttpClient, createResponse / createResponseStream / createEmbedding use OpenAiSchema request-response types, and websocket mode no longer depends on generated-client internals.

    Also migrate OpenAI language and embedding model request-response typing to OpenAiSchema and make embedding decoding explicitly reject non-vector (string/base64) payloads with InvalidOutputError.

  • Updated dependencies [8e04bfc, cf3a311, 8e04bfc, 131fdd5]:

    • effect@4.0.0-beta.52

Don't miss a new effect-smol release

NewReleases is sending notifications on new releases.