Skip to content

Commit 4bef3d8

Browse files
authored
Add streaming support for the responses API (#5)
* add stream flag to req body * stub * add streaming response
1 parent 826ef0d commit 4bef3d8

File tree

3 files changed

+532
-49
lines changed

3 files changed

+532
-49
lines changed

Cargo.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ colored = "2"
2929

3030
tower = { version = "0.4", features = ["full"] }
3131
tower-http = { version = "0.5", features = ["timeout"] }
32+
futures-util = "0.3"
33+
async-stream = "0.3"
3234

3335
[dev-dependencies]
3436
tempfile = "3.20.0"

0 commit comments

Comments
 (0)