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

Function test_config

crates/openshell-router/src/lib.rs:152–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 use config::{RouteConfig, RouterConfig};
151
152 fn test_config() -> RouterConfig {
153 RouterConfig {
154 routes: vec![RouteConfig {
155 name: "inference.local".to_string(),
156 endpoint: "http://localhost:8000/v1".to_string(),
157 model: "meta/llama-3.1-8b-instruct".to_string(),
158 provider_type: None,
159 protocols: vec!["openai_chat_completions".to_string()],
160 api_key: Some("test-key".to_string()),
161 api_key_env: None,
162 }],
163 }
164 }
165
166 #[test]
167 fn router_resolves_routes_from_config() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected