github Effect-TS/effect @effect/ai-amazon-bedrock@0.16.1

7 hours ago

Patch Changes

  • #6272 1876254 Thanks @tsushanth! - Fix @effect/ai-amazon-bedrock streaming so the terminal "finish" part carries real token counts. The Bedrock Converse stream sends metadata (with the populated usage block) after messageStop, but the SDK was emitting "finish" synchronously on messageStop, capturing the still-empty usage defaults. Buffer the finish reason on messageStop and emit "finish" from the metadata case once inputTokens / outputTokens / totalTokens are filled in.

  • Updated dependencies [8222963, 7e00169]:

    • effect@3.21.4
    • @effect/platform@0.96.2

Don't miss a new effect release

NewReleases is sending notifications on new releases.