Update __init__.py

simple fix used builtin map func instead of a list comprehension, incorrect usage of comprehensions.
このコミットが含まれているのは:
Phish 2023-04-26 14:51:03 +01:00 committed by GitHub
コミット 097faaca1e
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -26,7 +26,7 @@ class PhindResponse:
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>'''
def __init__(self, choices: dict) -> None:
self.choices = [self.Choices(choice) for choice in choices]
self.choices = list(map(self.Choices, choices))
class Usage:
def __init__(self, usage_dict: dict) -> None: