(self, completion, choices)
| 238 | yield '[DONE]' |
| 239 | |
| 240 | def non_streamed_response(self, completion, choices) -> str: |
| 241 | completion['id'] = self.random_completion_id() |
| 242 | completion['choices'] = choices |
| 243 | return json.dumps(completion) |
| 244 | |
| 245 | def __call__(self, data: dict): |
| 246 | st = time.time() |
no test coverage detected