Skip to content

@effect/ai-openai-compat@4.1.4

Choose a tag to compare

@effect-bot effect-bot released this 11 Nov 04:00
· 3 commits to main since this release
289a53f

Patch Changes

  • #10516 0555dbd Thanks @imranbarbhuiya! - Fix OpenAiLanguageModel sending developer instead of system messages for models such as olmo-2 and provider-prefixed IDs such as openai/gpt-oss-120b.

  • #10515 4e66f06 Thanks @imranbarbhuiya! - Fix failed responses and dropped stream chunks when OpenAI-compatible servers send null for optional chat completion and embeddings response fields. The affected OpenAiClient response types now include null.

  • #10514 f056504 Thanks @imranbarbhuiya! - Send PDF file parts as Chat Completions file content parts instead of dropping them or flattening them into message text. PDF URLs now fail with InvalidUserInputError; pass bytes, base64 or a file ID instead.

  • #10534 176e097 Thanks @clean99! - Preserve nonempty chat completion refusals in finish metadata and remap only refusal-bearing stop responses to content-filter, including streaming responses.

  • #10533 5ec3989 Thanks @gabedemesa! - Fix OpenAiLanguageModel advertising non-strict tools with strict-mode schemas, which turned records into entry arrays and optional properties into required nullable ones.

  • Updated dependencies [f527f90, ee5550a, 7fce132, 9116189, edb2eaa, 8176cdb, 3a65e9e, fdd319e, 72c3fb4, 9c41784]:

    • effect@4.1.4