mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 13:07:25 +00:00
docstring quickfix
This commit is contained in:
parent
c4eacbfc0f
commit
b4e7957a00
@ -109,8 +109,11 @@ def parse_docstring(docstring):
|
|||||||
|
|
||||||
for line in docstring.splitlines():
|
for line in docstring.splitlines():
|
||||||
match = param_pattern.match(line.strip())
|
match = param_pattern.match(line.strip())
|
||||||
if match:
|
if not match:
|
||||||
|
continue
|
||||||
param_name, param_description = match.groups()
|
param_name, param_description = match.groups()
|
||||||
|
if param_name.startswith("__"):
|
||||||
|
continue
|
||||||
param_descriptions[param_name] = param_description
|
param_descriptions[param_name] = param_description
|
||||||
|
|
||||||
return param_descriptions
|
return param_descriptions
|
||||||
|
Loading…
Reference in New Issue
Block a user