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

Function validation_next_steps

crates/openshell-server/src/inference.rs:772–793  ·  view source on GitHub ↗
(kind: ValidationFailureKind)

Source from the content-addressed store, hash-verified

770}
771
772fn validation_next_steps(kind: ValidationFailureKind) -> &'static str {
773 match kind {
774 ValidationFailureKind::Credentials => {
775 "verify the provider API key and any required auth headers"
776 }
777 ValidationFailureKind::RateLimited => {
778 "retry later or verify quota/limits on the upstream provider"
779 }
780 ValidationFailureKind::RequestShape => {
781 "confirm the provider type, base URL, and model identifier"
782 }
783 ValidationFailureKind::Connectivity => {
784 "check that the service is running, confirm the base URL and protocol, and verify credentials"
785 }
786 ValidationFailureKind::UpstreamHealth => {
787 "check whether the endpoint is healthy and serving requests"
788 }
789 ValidationFailureKind::Unexpected => {
790 "confirm the endpoint URL, protocol, credentials, and model identifier"
791 }
792 }
793}
794
795async fn verify_provider_endpoint(
796 provider_name: &str,

Callers 1

verify_provider_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected