Fix: Update env to support PPTX and update README for version changes (#11167)

### What problem does this PR solve?

Fix: Update env to support PPTX
Fix: update README for version changes #11138

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Documentation Update

---------

Co-authored-by: writinwaters <93570324+writinwaters@users.noreply.github.com>
This commit is contained in:
Billy Bao
2025-11-11 19:56:54 +08:00
committed by GitHub
parent 72740eb5b9
commit de53498b39
9 changed files with 29 additions and 2 deletions

View File

@ -67,8 +67,10 @@ class Session(Base):
or (self.__session_type == "chat" and json_data.get("data") is True)
):
return
yield self._structure_answer(json_data)
if self.__session_type == "agent":
yield self._structure_answer(json_data)
else:
yield self._structure_answer(json_data["data"])
else:
try:
json_data = res.json()