MCPcopy
hub / github.com/oobabooga/textgen / apply_extensions

Function apply_extensions

modules/extensions.py:250–254  ·  view source on GitHub ↗
(typ, *args, **kwargs)

Source from the content-addressed store, hash-verified

248
249
250def apply_extensions(typ, *args, **kwargs):
251 if typ not in EXTENSION_MAP:
252 raise ValueError(f"Invalid extension type {typ}")
253
254 return EXTENSION_MAP[typ](*args, **kwargs)

Callers 11

create_interfaceFunction · 0.90
make_promptFunction · 0.90
chatbot_wrapperFunction · 0.90
send_dummy_messageFunction · 0.90
send_dummy_replyFunction · 0.90
start_new_chatFunction · 0.90
_generate_replyFunction · 0.90
get_encoded_lengthFunction · 0.90
generate_reply_HFFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected