mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
Merge pull request #7263 from michaelpoluektov/fix/docstring-event-emitter
fix: docstring event emitter
This commit is contained in:
@@ -109,9 +109,12 @@ 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:
|
||||||
param_name, param_description = match.groups()
|
continue
|
||||||
param_descriptions[param_name] = param_description
|
param_name, param_description = match.groups()
|
||||||
|
if param_name.startswith("__"):
|
||||||
|
continue
|
||||||
|
param_descriptions[param_name] = param_description
|
||||||
|
|
||||||
return param_descriptions
|
return param_descriptions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user