Skip to content

@effect/ai-openrouter@4.0.0-beta.102

Pre-release
Pre-release

Choose a tag to compare

@effect-bot effect-bot released this 26 Jul 22:25
de2a9a6

Patch Changes

  • #6608 0e50ec7 Thanks @gcanti! - Add Schema.Natural for non-negative safe integers and use canonical Schema.Int, Schema.Finite, and Schema.Natural schemas for numeric domain values across Effect, AI protocols, and OpenAPI patches.

    Update the date, date-time, file, time-zone, cluster, event-log, persistence, socket, SQL, and DevTools schemas to reject invalid non-finite or non-integer values where appropriate. Correct the decoded schema of Schema.NumberFromString, and allow Schema.DurationFromMillis and Schema.DurationFromNanos to represent negative durations.

  • #6567 5101e92 Thanks @gcanti! - Add Record.assignProperty and safely handle dynamic record keys such as __proto__ and inherited property names.

  • #6572 c0f9fc9 Thanks @tim-smart! - Regenerate the Generated module against OpenRouter's current published specification. This preserves nullable
    generation statistics and streamed usage cost metadata while incorporating the broader upstream schema changes.

    Notable generated schema renames include ChatGenerationParams to ChatRequest, ChatGenerationTokenUsage to
    ChatUsage, AssistantMessage to ChatAssistantMessage, ChatStreamingResponseChunk to ChatStreamingResponse,
    and ChatMessageContentItemCacheControl to ChatContentCacheControl. Handwritten public aliases such as
    ChatStreamingResponseChunkData, ReasoningDetails, and FileAnnotation retain their existing names.

  • Updated dependencies [b6392e1, 7ed9450, 45762bd, a6e8391, 4ac7e8b, 4cd40f5, 6956bc0, 0e50ec7, 9fcdade, 57367d5, 35c445f, c917bb9, bc1f358, 0e0c9d7, 73d40aa, 4f1e318, 9d8d85c, 6079fda, 5101e92, d0b3265, 7a03c89, cea1d9c, 078e1f5, 97bafea, fab0ab8, c323d8b, 6966353, 0444004, 028bbb3, ff5d6e2, 1bfce93, 7ce815c, 7271a7f, 475fe5c]:

    • effect@4.0.0-beta.102