MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / decorator

Function decorator

llama_cpp/llama_chat_format.py:157–159  ·  view source on GitHub ↗
(f: LlamaChatCompletionHandler)

Source from the content-addressed store, hash-verified

155
156def register_chat_completion_handler(name: str):
157 def decorator(f: LlamaChatCompletionHandler):
158 LlamaChatCompletionHandlerRegistry().register_chat_completion_handler(name, f)
159 return f
160
161 return decorator
162

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…