diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-26 18:52:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 18:52:47 +0200 |
commit | f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6 (patch) | |
tree | 9e281c4fb9d84e39feb1144ff4d44284a5e91a38 | |
parent | Merge pull request #155 from Daniele-Polizzi/Daniele-Polizzi-patch-1 (diff) | |
parent | Update __init__.py (diff) | |
download | gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.tar gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.tar.gz gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.tar.bz2 gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.tar.lz gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.tar.xz gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.tar.zst gpt4free-f028d1d6a48b4a53fd3cb1ea3ccea30bce02e9b6.zip |
Diffstat (limited to '')
-rw-r--r-- | phind/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phind/__init__.py b/phind/__init__.py index 9f000c6f..e7009d67 100644 --- a/phind/__init__.py +++ b/phind/__init__.py @@ -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: |