refactor: conditionally set stream based on main_model.streaming

This commit is contained in:
Paul Gauthier 2025-01-10 13:31:55 -08:00 committed by Paul Gauthier (aider)
parent f047882ac1
commit babae0fa6e

View file

@ -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