Minor Changes
- #2059
6f73f92Thanks @tim-smart! - Add a new publicOpenAiSchemamodule with minimal local schemas for responses, streaming SSE events (including unknown-event fallback), and embeddings.
Patch Changes
-
#2059
6f73f92Thanks @tim-smart! - Add a newOpenAiClientGeneratedmodule that exposes the generated OpenAI client as a dedicated context service withmake,layer, andlayerConfigconstructors. This provides a compatibility path for direct generated-client access while preserving existing auth, base URL, header, andOpenAiConfig.transformClientwiring. -
#2059
6f73f92Thanks @tim-smart! - RefactorOpenAiClientto the handwritten minimal-schema path soclientnow exposes the configuredHttpClient,createResponse/createResponseStream/createEmbeddinguseOpenAiSchemarequest-response types, and websocket mode no longer depends on generated-client internals.Also migrate OpenAI language and embedding model request-response typing to
OpenAiSchemaand make embedding decoding explicitly reject non-vector (string/base64) payloads withInvalidOutputError. -
Updated dependencies [
8e04bfc,cf3a311,8e04bfc,131fdd5]:- effect@4.0.0-beta.52