返回提交历史
Modified
phind/__init__.py
+1
-1
XFEstudio/gpt4free
Update __init__.py
simple fix used builtin map func instead of a list comprehension, incorrect usage of comprehensions.
097faaca
代码差异
1 个文件
+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: