MCPcopy
hub / github.com/fauxpilot/fauxpilot / non_streamed_response

Method non_streamed_response

copilot_proxy/utils/codegen.py:240–243  ·  view source on GitHub ↗
(self, completion, choices)

Source from the content-addressed store, hash-verified

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()

Callers 1

__call__Method · 0.95

Calls 1

random_completion_idMethod · 0.95

Tested by

no test coverage detected