(self, model="text-davinci-003", openai_key="")
| 13 | |
| 14 | class Davinci: |
| 15 | def __init__(self, model="text-davinci-003", openai_key="") -> None: |
| 16 | super().__init__() |
| 17 | self.model = model |
| 18 | self.openai_key = openai_key |
| 19 | self.chatio = SimpleChatIO() |
| 20 | |
| 21 | def prediction(self, prompt: str, stop: Optional[List[str]] = None) -> str: |
| 22 | max_try = 10 |
nothing calls this directly
no test coverage detected