Packages

@effect/ai-openai-compat

4.0.5 · 15 Oct 2026MIT41.4k / weekRepositoryHomepagenpmAtom feed

7 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.0.6

    22 Oct 2026
    • Add an optional batchKey to EmbeddingModel.make to group concurrent embed calls by provider-relevant context. OpenAI and OpenAI-compatible providers now separate batches with different configuration overrides or client transforms. Undeclared context, such as per-call FetchHttpClient.RequestInit, still uses the first caller's value.

    • Add typed HTTP date and Retry-After header values to Headers, and parse them consistently across the HTTP client, OTLP exporter, GraphQL client, AI clients and static server.

    • Add non-retryable AiError.InvalidResponseError for provider response schema and SSE decoding failures, with optional HTTP context; model-generated output validation remains retryable. Update exhaustive matches on AiErrorReason to handle the new tag, and update serialized-error consumers to accept it.

  2. 4.0.5

    15 Oct 2026
    • Emit each streamed chat completion event's parts as one chunk instead of creating an inner stream per event.

    • Use "openai-compat" instead of "openai" as the provider key for error metadata, prompt part options, and response part metadata, so @effect/ai-openai-compat no longer shares module augmentation keys with @effect/ai-openai.

    • Avoid creating a child stream for each SSE event when streaming chat completions.

  3. 4.0.4

    13 Oct 2026
    • Add toolCallValidation: "deferred" for callers using disableToolCallResolution: true. Model-generated tool calls return with unknown parameters, including invalid parameters and undeclared tool names, even without a toolkit. Supported by the Anthropic, OpenAI, and OpenAI-compatible providers. Strict validation remains the default; provider-executed calls remain validated.

    • Replay assistant text, reasoning, and tool calls in Chat Completions requests even when their parts carry item IDs. Remove unused Responses API include bookkeeping and the unsupported store and conversation configuration options. Neither option is sent to the provider.

    • Replay assistant reasoning alongside text and tool calls in a single chat message, preserving the provider’s reasoning field (defaulting to reasoning_content).

  4. 4.0.3

    10 Oct 2026
    • Preserve tool call extra_content from OpenAI-compatible providers, so Gemini receives its thought signatures on follow-up tool turns. It is exposed as metadata.openai.extraContent on tool call response parts and sent back from the openai.extraContent tool call prompt option.

    • Ignore empty content deltas in streamed chat completions. Providers such as Ollama send content: "" with every reasoning chunk, which split a single reasoning block into one part per token and opened the text part before the reasoning finished.

  5. 4.0.2

    7 Oct 2026
    • Update AI tracing to use current OpenTelemetry GenAI conventions:

    • Tag every module and directly importable export with an explicit @stability. @stability stable follows strict semver, and @stability unstable may receive breaking changes in minor releases.

  6. 4.0.1

    4 Oct 2026

    Only updates a dependency:effect 4.0.1

  7. 4.0.0

    1 Oct 2026
    • Effect 4.0 is the first stable release of Effect v4. It replaces the 4.0.0 beta and release-candidate series, whose per-release notes remain below under the 4.0.0-beta.* and 4.0.0-rc.* headings. To upgrade from Effect 3, follow the migration guide.

      Packaging and versioning

      Core

      Schema

      Platform, HTTP and RPC

      Cluster and Workflow

      SQL

      AI

      CLI, Atom, observability and testing

      Requirements