Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log generated tokens out to file when streaming #309

Merged
merged 21 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- 'main'
- 'stream-log-dump' # XXX
tags:
- 'v*'

Expand Down Expand Up @@ -61,11 +62,12 @@ jobs:
with:
images: |
ghcr.io/predibase/lorax
# XXX
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=,suffix=,format=short
type=raw,value=latest
type=sha,prefix=magdy-test-,suffix=,format=short




- name: Create a hash from tags
env:
Expand Down
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
3 changes: 3 additions & 0 deletions router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use loader::AdapterLoader;
use queue::Entry;
use serde::{Deserialize, Serialize};
use serde_json::json;
use utoipa::openapi::schema;
use utoipa::ToSchema;
use validation::Validation;

Expand Down Expand Up @@ -66,6 +67,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
Loading