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

Function validation_failure

crates/openshell-server/src/inference.rs:760–770  ·  view source on GitHub ↗
(
    provider_name: &str,
    model_id: &str,
    base_url: &str,
    details: &str,
    next_steps: &str,
)

Source from the content-addressed store, hash-verified

758}
759
760fn validation_failure(
761 provider_name: &str,
762 model_id: &str,
763 base_url: &str,
764 details: &str,
765 next_steps: &str,
766) -> Status {
767 Status::failed_precondition(format!(
768 "failed to verify inference endpoint for provider '{provider_name}' and model '{model_id}' at '{base_url}': {details}. Next steps: {next_steps}, or retry with '--no-verify' if you want to skip verification"
769 ))
770}
771
772fn validation_next_steps(kind: ValidationFailureKind) -> &'static str {
773 match kind {

Callers 1

verify_provider_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected