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
18 changes: 10 additions & 8 deletions base-convert/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 base-convert/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ members = [
]

[workspace.package]
version = "0.3.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/basecompute/baseRT"
Expand Down
3 changes: 3 additions & 0 deletions base-convert/crates/base-convert/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ base-hub.workspace = true
memmap2.workspace = true
sha2.workspace = true
tempfile.workspace = true
dirs.workspace = true
# `basert superfluid install` fetches superfluid's release tarball from GitHub.
ureq = "3"

[dev-dependencies]
tempfile.workspace = true
15 changes: 6 additions & 9 deletions base-convert/crates/base-convert/src/hub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ fn bundled_computearena_harness(

/// Forward `basert <cmd> [args…]` to the matching runtime binary. Searches for
/// `basert-<cmd>` (release layout) then `baseRT_<cmd>` (local dev build),
/// looking next to this executable first and then on `PATH`. On success the
/// looking next to this executable first and then on `PATH`. `basert serve`
/// has no runtime binary: it runs superfluid (`crate::serve`). On success the
/// current process is replaced (`exec`), so this only returns on failure.
pub fn dispatch_external(argv: Vec<String>) -> Result<()> {
use std::os::unix::process::CommandExt;
Expand All @@ -501,6 +502,9 @@ pub fn dispatch_external(argv: Vec<String>) -> Result<()> {
// hub-id resolution.
let (variant_flag, rest) = extract_variant_flag(rest)?;
let rest = resolve_model_args(&rest, variant_flag.as_deref())?;
if cmd == "serve" {
return crate::serve::run(&rest);
}
(vec![format!("basert-{cmd}"), format!("baseRT_{cmd}")], rest)
};

Expand Down Expand Up @@ -559,14 +563,7 @@ pub fn dispatch_external(argv: Vec<String>) -> Result<()> {
/// Commands served by the BaseRT runtime rather than this binary. Used only
/// to shape the not-found error above; dispatch itself is name-driven, so
/// commands absent from this list (or from `basert --help`) still dispatch.
const RUNTIME_COMMANDS: [&str; 6] = [
"serve",
"chat",
"complete",
"bench",
"transcribe",
"profile",
];
const RUNTIME_COMMANDS: [&str; 5] = ["chat", "complete", "bench", "transcribe", "profile"];

pub fn cmd_pull(args: PullArgs) -> Result<()> {
let reg = MergedRegistry::load()?;
Expand Down
Loading
Loading