mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-07-11 15:46:45 -07:00
Discard extra newlines
Doesn't seem necessary. Copilot works without these newlines Signed-off-by: Parth Thakkar <thakkarparth007@gmail.com>
This commit is contained in:
parent
566cf7a675
commit
e90f1c5dc2
1 changed files with 2 additions and 2 deletions
|
@ -234,8 +234,8 @@ class CodeGenProxy:
|
||||||
for c in choices:
|
for c in choices:
|
||||||
completion['id'] = self.random_completion_id()
|
completion['id'] = self.random_completion_id()
|
||||||
completion['choices'] = [c]
|
completion['choices'] = [c]
|
||||||
yield f'{json.dumps(completion)}\n\n'
|
yield f'{json.dumps(completion)}'
|
||||||
yield '[DONE]\n\n'
|
yield '[DONE]'
|
||||||
|
|
||||||
def non_streamed_response(self, completion, choices) -> str:
|
def non_streamed_response(self, completion, choices) -> str:
|
||||||
completion['id'] = self.random_completion_id()
|
completion['id'] = self.random_completion_id()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue