summaryrefslogtreecommitdiffstats
path: root/phind
diff options
context:
space:
mode:
authorRaju Komati <komatiraju032@gmail.com>2023-04-27 00:46:25 +0200
committerRaju Komati <komatiraju032@gmail.com>2023-04-27 00:46:25 +0200
commit4b9875b99fba787101d6346b3aee2cbc547de161 (patch)
tree7ec2cd7c962737db8dc4f8e0cb7a1dd87f7b9a6b /phind
parentupdated quora readme (diff)
parenthttps://discord.gg/gpt4free (diff)
downloadgpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.tar
gpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.tar.gz
gpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.tar.bz2
gpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.tar.lz
gpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.tar.xz
gpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.tar.zst
gpt4free-4b9875b99fba787101d6346b3aee2cbc547de161.zip
Diffstat (limited to 'phind')
-rw-r--r--phind/__init__.py2
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: