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

XFEstudio/gpt4free

Update __init__.py

simple fix used builtin map func instead of a list comprehension, incorrect usage of comprehensions.

097faaca
Phish <69989217+phishontop@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified phind/__init__.py +1 -1
@@ -26,7 +26,7 @@ class PhindResponse:
26 26 return f'''<__main__.APIResponse.Completion.Choices(\n text = {self.text.encode()},\n index = {self.index},\n logprobs = {self.logprobs},\n finish_reason = {self.finish_reason})object at 0x1337>'''
27 27
28 28 def __init__(self, choices: dict) -> None:
29 self.choices = [self.Choices(choice) for choice in choices]
29 self.choices = list(map(self.Choices, choices))
30 30
31 31 class Usage:
32 32 def __init__(self, usage_dict: dict) -> None: