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

Function generic_body

crates/openshell-router/src/mock.rs:133–140  ·  view source on GitHub ↗
(model: &str)

Source from the content-addressed store, hash-verified

131}
132
133fn generic_body(model: &str) -> Vec<u8> {
134 serde_json::to_vec(&serde_json::json!({
135 "mock": true,
136 "model": model,
137 "message": "Hello from openshell mock backend"
138 }))
139 .expect("static JSON must serialize")
140}
141
142#[cfg(test)]
143mod tests {

Callers 1

mock_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected