XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Remove debug print statements from Yupp class to clean up output

10a24f5d
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +0 -4
Modified g4f/Provider/Yupp.py +0 -4
@@ -585,7 +585,6 @@ class Yupp(AsyncGeneratorProvider, ProviderModelMixin):
585 585 line = await loop.run_in_executor(_executor, lambda: next(lines_iterator, None))
586 586 if line is None:
587 587 break
588 print(line[:20])
589 588 except StopIteration:
590 589 break
591 590
@@ -633,8 +632,6 @@ class Yupp(AsyncGeneratorProvider, ProviderModelMixin):
633 632 except json.JSONDecodeError:
634 633 continue
635 634
636 print(chunk_id)
637
638 635 if chunk_id == reward_id and isinstance(data, dict) and "unclaimedRewardInfo" in data:
639 636 reward_info = data
640 637 log_debug(f"Found reward info")
@@ -642,7 +639,6 @@ class Yupp(AsyncGeneratorProvider, ProviderModelMixin):
642 639 elif chunk_id == "1":
643 640 yield PlainTextResponse(line.decode(errors="ignore"))
644 641 if isinstance(data, dict):
645 print(data)
646 642 left_stream = data.get("leftStream", {})
647 643 right_stream = data.get("rightStream", {})
648 644 if data.get("quickResponse", {}) != "$undefined":