Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion approval-gate/Cargo.lock

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

9 changes: 8 additions & 1 deletion llm-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/lib.rs"

[dependencies]
iii-sdk = "=0.21.6"
iii-console-ui = { path = "../crates/console-ui" }
iii-console-ui = { path = "../crates/console-ui", optional = true }
# Re-exports the same `opentelemetry` the SDK uses, so we can carry the active
# OTel context across `tokio::spawn` boundaries (shared `Context` global).
# 0.21.5 adds the live span-start push, so `router::chat` renders in the
Expand All @@ -43,3 +43,10 @@ tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }

[dev-dependencies]
tokio = { version = "1", features = ["test-util"] }

[features]
# The injectable console UI (ui.rs + the pnpm bundle in build.rs). Path
# dependents that only consume the library types disable default features to
# drop the Node toolchain from their build graph.
default = ["console-ui"]
console-ui = ["dep:iii-console-ui"]
7 changes: 7 additions & 0 deletions llm-router/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ fn main() {
std::env::var("TARGET").expect("TARGET must be set by Cargo build scripts")
);

// Everything below builds/validates the injectable console UI bundle.
// Skip it when the `console-ui` feature is off (lib-only path dependents)
// so their builds never need a Node toolchain.
if std::env::var_os("CARGO_FEATURE_CONSOLE_UI").is_none() {
return;
}

// `dist/` itself is not listed: include_str! reads it directly, and
// listing it would rebuild-loop on our own output.
println!("cargo:rerun-if-changed=ui/page.tsx");
Expand Down
1 change: 1 addition & 0 deletions llm-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ pub mod system_prompt;
pub mod testkit;
pub mod triggers;
pub mod types;
#[cfg(feature = "console-ui")]
pub mod ui;
1 change: 1 addition & 0 deletions llm-router/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
);

register_router(iii.clone()).await?;
#[cfg(feature = "console-ui")]
llm_router::ui::register(&iii);
tracing::info!(url = %cli.url, "llm-router registered");

Expand Down
2 changes: 1 addition & 1 deletion provider-anthropic/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-anthropic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::anthropic::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
2 changes: 1 addition & 1 deletion provider-claude-code/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-claude-code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::claude-code::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
2 changes: 1 addition & 1 deletion provider-deepseek/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-deepseek/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph).
iii-sdk = "=0.21.6"
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion provider-kimi/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-kimi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin so the provider and router share one IIIClient type.
iii-sdk = "=0.21.6"
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion provider-llamacpp/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-llamacpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::llamacpp::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
2 changes: 1 addition & 1 deletion provider-openai-codex/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-openai-codex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::openai-codex::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
2 changes: 1 addition & 1 deletion provider-openai/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-openai/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::openai::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
2 changes: 1 addition & 1 deletion provider-xai/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-xai/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::xai::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
2 changes: 1 addition & 1 deletion provider-zai/Cargo.lock

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

2 changes: 1 addition & 1 deletion provider-zai/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[dependencies]
llm-router = { path = "../llm-router" }
llm-router = { path = "../llm-router", default-features = false }
# Must match llm-router's pin (one iii-sdk per graph). 0.21.5 brings the
# live span-start push: `provider::zai::stream` renders while streaming.
iii-sdk = "=0.21.6"
Expand Down
Loading