Merge pull request #157 from phishontop/main
Browse files- phind/__init__.py +1 -1
phind/__init__.py
CHANGED
@@ -26,7 +26,7 @@ class PhindResponse:
|
|
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 |
|
28 |
def __init__(self, choices: dict) -> None:
|
29 |
-
self.choices =
|
30 |
|
31 |
class Usage:
|
32 |
def __init__(self, usage_dict: dict) -> None:
|
|
|
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 |
|
28 |
def __init__(self, choices: dict) -> None:
|
29 |
+
self.choices = list(map(self.Choices, choices))
|
30 |
|
31 |
class Usage:
|
32 |
def __init__(self, usage_dict: dict) -> None:
|