mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-01 10:06:44 +01:00
Fix api_format_docstring
This commit is contained in:
parent
ddda981436
commit
a93087aecd
@ -428,7 +428,7 @@ def new_make_min_max_attributes(validators, min_attr, max_attr) -> dict:
|
||||
make_min_max_attributes.__code__ = new_make_min_max_attributes.__code__
|
||||
|
||||
def api_format_docstring(f):
|
||||
f.__doc__ = eval('f"""{}"""'.format(f.__doc__))
|
||||
f.__doc__ = eval('f"""{}"""'.format(f.__doc__.replace("\\", "\\\\")))
|
||||
return f
|
||||
|
||||
def api_catch_out_of_memory_errors(f):
|
||||
|
Loading…
x
Reference in New Issue
Block a user