Skip to content

@effect/ai-amazon-bedrock@0.16.1

Choose a tag to compare

@github-actions github-actions released this 18 Jun 20:49
· 1 commit to main since this release
4c5a0e3

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