Skip to content

Commit

Permalink
Log generated tokens out to file when streaming (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
magdyksaleh authored Mar 14, 2024
1 parent 1e2a94f commit 431ae61
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 27 deletions.
182 changes: 177 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ opentelemetry = { version = "0.19.0", features = ["rt-tokio"] }
opentelemetry-otlp = "0.12.0"
rand = "0.8.5"
reqwest = { version = "0.11.14", features = [] }
reqwest-middleware = "0.2.4"
reqwest-retry = "0.4.0"
serde = "1.0.152"
serde_json = { version = "1.0.93", features = ["preserve_order"] }
thiserror = "1.0.38"
Expand Down
2 changes: 2 additions & 0 deletions router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ pub struct Info {
pub sha: Option<&'static str>,
#[schema(nullable = true, example = "null")]
pub docker_label: Option<&'static str>,
#[schema(nullable = true, example = "http://localhost:8899")]
pub request_logger_url: Option<String>,
}

#[derive(Clone, Debug, Deserialize, ToSchema, Default)]
Expand Down
Loading

0 comments on commit 431ae61

Please sign in to comment.