llm.rb 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03ed8d289dc230fb6404f2fb3d1482401354f078b3502cd550949bcff48d97d2
4
- data.tar.gz: 8b54acc8723263b5bf8c2d0025452e1448dfc66953a2c0d0c24c13e4d7b3343b
3
+ metadata.gz: 8f9bdef0c733225e44dcf39d75e3397974122bfeb5e705a0797067242fd5c966
4
+ data.tar.gz: 567cc793e1e095e481abf5ef797a6fcb26a04faeed91855c234e531b78e3544a
5
5
  SHA512:
6
- metadata.gz: b088838c5b1860e30413ba87e2c66dec393b3bff51e462e38af5bc1f13b746b7bdf5d103b67f949aa31a6bc6da280da3e170f876743f6286f8a5674f6cee42a6
7
- data.tar.gz: 769fecd327298f7b17b731f181d3091194cddeb758e1723a20a5c789f4b0298ce9a5f5244aa3d4a807b8d8260d541e1286443ca9d841a11fd666cb354a7f893b
6
+ metadata.gz: 3d7e026b308228787d2f6ead8de197f847b644f7ba5bd0a1d679270a66e5c0e48c74a7d9494a86613bd061a42c2fd56ff270f73f8f3a627bc213dd7d57de788d
7
+ data.tar.gz: 8586a02d0345e7259f80b32e688a0ad531e28e3d15c8519781647ee1f77f23b6ecdaa9b28ed40efdea138c138511c7c4f88986ed7d646fb562e9faf7e2db687f
data/CHANGELOG.md CHANGED
@@ -2,8 +2,25 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ Changes since `v5.2.1`.
6
+
7
+ ## v5.2.1
8
+
5
9
  Changes since `v5.2.0`.
6
10
 
11
+ This release tightens the streamed queue fix from `v5.2.0` for concurrent
12
+ workloads. Request-local streams now stay bound long enough for `wait` to
13
+ drain queued work and then clear cleanly so later waits fall back to the
14
+ context's configured stream.
15
+
16
+ ### Fix
17
+
18
+ * **Reset request-local streams after `wait` drains queued work** <br>
19
+ Keep per-call `stream:` bindings alive through `LLM::Context#wait` so
20
+ queued streamed tool work still resolves correctly, then clear the
21
+ request-local stream after the wait completes to avoid leaking it into
22
+ later turns.
23
+
7
24
  ## v5.2.0
8
25
 
9
26
  Changes since `v5.1.0`.
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <p align="center">
5
5
  <a href="https://0x1eef.github.io/x/llm.rb?rebuild=1"><img src="https://img.shields.io/badge/docs-0x1eef.github.io-blue.svg" alt="RubyDoc"></a>
6
6
  <a href="https://opensource.org/license/0bsd"><img src="https://img.shields.io/badge/License-0BSD-orange.svg?" alt="License"></a>
7
- <a href="https://github.com/llmrb/llm.rb/tags"><img src="https://img.shields.io/badge/version-5.2.0-green.svg?" alt="Version"></a>
7
+ <a href="https://github.com/llmrb/llm.rb/tags"><img src="https://img.shields.io/badge/version-5.2.1-green.svg?" alt="Version"></a>
8
8
  </p>
9
9
 
10
10
  ## About
data/lib/llm/context.rb CHANGED
@@ -305,6 +305,7 @@ module LLM
305
305
  end
306
306
  ensure
307
307
  @queue = nil
308
+ @stream = nil
308
309
  end
309
310
 
310
311
  ##
data/lib/llm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LLM
4
- VERSION = "5.2.0"
4
+ VERSION = "5.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antar Azri