Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
fix(cli): keep cluster cache URLs out of startup output
svonava10ea83bd1576
diff --git a/packages/sie_server/src/sie_server/cli.py b/packages/sie_server/src/sie_server/cli.pyindex 21b441519..2a96c4616 100644--- a/packages/sie_server/src/sie_server/cli.py+++ b/packages/sie_server/src/sie_server/cli.py@@ -822,7 +822,7 @@ def serve(typer.echo("")cache_config = get_cache_config()if cache_config.cluster_cache:- typer.echo(f"Cluster cache: {cache_config.cluster_cache}")+ typer.echo("Cluster cache: configured")if not cache_config.hf_fallback:typer.echo("HuggingFace Hub fallback: disabled")diff --git a/packages/sie_server/tests/test_cli_cache.py b/packages/sie_server/tests/test_cli_cache.pyindex e9471f4ce..c2e5071f3 100644--- a/packages/sie_server/tests/test_cli_cache.py+++ b/packages/sie_server/tests/test_cli_cache.py@@ -98,3 +98,34 @@ def test_cli_cache_directory_precedence(assert observed[0].hf_fallback is Falseassert os.environ.get(environment_name) == expected_environmentassert ("Cluster cache:" in result.output) is bool(observed[0].cluster_cache)++[email protected]("source", ["environment", "flag"])+ "cache_url",+ [+ "oss://example-user:synthetic-cache-marker@bucket/cache",+ "abfss://[email protected]/cache?sv=example&sig=synthetic-sas-marker",+ ],+)+def test_cluster_cache_banner_never_echoes_the_url(+ monkeypatch: pytest.MonkeyPatch, source: str, cache_url: str+) -> None:+ observed = []+ monkeypatch.setattr(cli, "run_server", Mock(side_effect=lambda **_kwargs: observed.append(get_cache_config())))+ args = ["serve", "--host", "127.0.0.1"]+ if source == "environment":+ monkeypatch.setenv("SIE_CLUSTER_CACHE", cache_url)+ else:+ args.extend(["--cluster-cache", cache_url])++ result = CliRunner().invoke(cli.app, args)++ assert result.exit_code == 0, result.output+ assert len(observed) == 1+ assert observed[0].cluster_cache == cache_url+ assert os.environ["SIE_CLUSTER_CACHE"] == cache_url+ assert "Cluster cache: configured" in result.output+ assert cache_url not in result.output+ assert "synthetic-cache-marker" not in result.output+ assert "synthetic-sas-marker" not in result.output