mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Merge pull request #177 from h0x91b/h0x91b-patch-1
Update base_coder.py
This commit is contained in:
commit
6a88d0f2b9
1 changed files with 4 additions and 0 deletions
|
@ -653,6 +653,10 @@ class Coder:
|
|||
live.start()
|
||||
|
||||
for chunk in completion:
|
||||
text = ''
|
||||
if len(chunk.choices) == 0:
|
||||
continue
|
||||
|
||||
if chunk.choices[0].finish_reason == "length":
|
||||
raise ExhaustedContextWindow()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue