mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix add slef base url openai error (#1854)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -35,7 +35,7 @@ def be_children(obj: dict, keyset:set):
|
||||
obj = [obj]
|
||||
if isinstance(obj, list):
|
||||
for i in obj: keyset.add(i)
|
||||
return [{"id": i, "children":[]} for i in obj]
|
||||
return [{"id": re.sub(r"\*+", "", i), "children":[]} for i in obj]
|
||||
arr = []
|
||||
for k,v in obj.items():
|
||||
k = re.sub(r"\*+", "", k)
|
||||
|
||||
Reference in New Issue
Block a user