mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-19 08:47:32 +00:00
Fix type exception when use office ppt database
fixes GH-678
This commit is contained in:
parent
867c2f2ea4
commit
20aa673c8c
@ -92,7 +92,7 @@ class ChatKnowledge(BaseChat):
|
||||
context = [d.page_content for d in docs]
|
||||
context = context[: self.max_token]
|
||||
relations = list(
|
||||
set([os.path.basename(d.metadata.get("source", "")) for d in docs])
|
||||
set([os.path.basename(str(d.metadata.get("source", ""))) for d in docs])
|
||||
)
|
||||
input_values = {
|
||||
"context": context,
|
||||
|
Loading…
Reference in New Issue
Block a user