MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / build_cluster_inference_config

Function build_cluster_inference_config

crates/openshell-server/src/inference.rs:243–253  ·  view source on GitHub ↗
(
    provider: &Provider,
    model_id: &str,
    timeout_secs: u64,
)

Source from the content-addressed store, hash-verified

241}
242
243fn build_cluster_inference_config(
244 provider: &Provider,
245 model_id: &str,
246 timeout_secs: u64,
247) -> ClusterInferenceConfig {
248 ClusterInferenceConfig {
249 provider_name: provider.object_name().to_string(),
250 model_id: model_id.to_string(),
251 timeout_secs,
252 }
253}
254
255#[derive(Debug)]
256struct ResolvedProviderRoute {

Callers 1

Calls 1

object_nameMethod · 0.80

Tested by

no test coverage detected