diff options
author | Phish <69989217+phishontop@users.noreply.github.com> | 2023-04-26 15:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 15:51:03 +0200 |
commit | 097faaca1eb1b29697d3ab805d4caa6807e033ad (patch) | |
tree | c3cf943368908b1237d4a58fe03a65aded415f7a | |
parent | Merge pull request #152 from 3k3n3/patch-1 (diff) | |
download | gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.tar gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.tar.gz gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.tar.bz2 gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.tar.lz gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.tar.xz gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.tar.zst gpt4free-097faaca1eb1b29697d3ab805d4caa6807e033ad.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: |