Skip to content

Commit 84045bb

Browse files
MaanavDCopilot
andcommitted
rust: use web service for Responses sample
Pivot the Rust Responses work away from SDK-native client/types and demonstrate the intended pattern instead: use FoundryLocalManager for setup/model/web-service lifecycle, then call /v1/responses via raw HTTP. Adds a focused responses_web_service example and integration tests for non-streaming, streaming SSE, and function-calling flows against the local OpenAI-compatible web service. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5457ac3 commit 84045bb

11 files changed

Lines changed: 528 additions & 2436 deletions

File tree

sdk/rust/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ tokio-stream = "0.1"
2525
tokio-util = "0.7"
2626
futures-core = "0.3"
2727
reqwest = { version = "0.12", features = ["json", "stream"] }
28-
bytes = "1"
29-
async-stream = "0.3"
3028
urlencoding = "2"
3129
async-openai = { version = "0.33", default-features = false, features = ["chat-completion-types", "embedding-types"] }
3230

@@ -37,8 +35,8 @@ serde_json = "1"
3735
serde = { version = "1", features = ["derive"] }
3836

3937
[[example]]
40-
name = "responses"
41-
path = "examples/responses.rs"
38+
name = "responses_web_service"
39+
path = "examples/responses_web_service.rs"
4240

4341
[[example]]
4442
name = "chat_completion"

sdk/rust/examples/responses.rs

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)