MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / get

Method get

questions/inference_server/model_cache.py:165–169  ·  view source on GitHub ↗
(self, model_name: str)

Source from the content-addressed store, hash-verified

163 return self.cache[model_name]
164
165 def get(self, model_name: str) -> Callable:
166 if model_name not in self.cache:
167 raise RuntimeError(f"Model {model_name} not found in cache")
168 self.cache.move_to_end(model_name) # Update LRU order
169 return self.cache[model_name]
170
171 def list_models(self) -> list:
172 """List all cached model names."""

Callers 15

simple_test.pyFile · 0.45
test_health_endpointFunction · 0.45
test_basicFunction · 0.45
debug_test.pyFile · 0.45
test_simple_audioFunction · 0.45
sync_usersFunction · 0.45
test_gpu_optimizationsFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_health_endpointFunction · 0.36
test_basicFunction · 0.36
test_simple_audioFunction · 0.36
test_gpu_optimizationsFunction · 0.36
test_connectionsFunction · 0.36
transcribe_fileFunction · 0.36
test_text_generationFunction · 0.36