MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / get_model_status

Function get_model_status

core/inference_v2.py:163–179  ·  view source on GitHub ↗

Get current model status.

()

Source from the content-addressed store, hash-verified

161
162
163def get_model_status() -> dict:
164 """Get current model status."""
165 loader = get_loader()
166
167 status = {
168 "loaded": loader.get_loaded_model(),
169 "loader": loader.get_status(),
170 }
171
172 backend = _chat_backend
173 if backend and backend != "http_fallback":
174 try:
175 status["backend"] = backend.get_stats()
176 except Exception:
177 pass
178
179 return status
180
181
182def get_backend_info() -> Dict[str, Any]:

Callers

nothing calls this directly

Calls 4

get_loaderFunction · 0.90
get_loaded_modelMethod · 0.80
get_statusMethod · 0.45
get_statsMethod · 0.45

Tested by

no test coverage detected