mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: conditionally set stream based on main_model.streaming
This commit is contained in:
parent
f047882ac1
commit
babae0fa6e
1 changed files with 2 additions and 1 deletions
|
@ -348,7 +348,6 @@ class Coder:
|
||||||
self.done_messages = []
|
self.done_messages = []
|
||||||
|
|
||||||
self.io = io
|
self.io = io
|
||||||
self.stream = stream
|
|
||||||
|
|
||||||
self.shell_commands = []
|
self.shell_commands = []
|
||||||
|
|
||||||
|
@ -363,6 +362,8 @@ class Coder:
|
||||||
|
|
||||||
self.main_model = main_model
|
self.main_model = main_model
|
||||||
|
|
||||||
|
self.stream = stream and main_model.streaming
|
||||||
|
|
||||||
if cache_prompts and self.main_model.cache_control:
|
if cache_prompts and self.main_model.cache_control:
|
||||||
self.add_cache_headers = True
|
self.add_cache_headers = True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue