From efa0c0e2921dbd21a118146e821a5a66003a9397 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 12 Sep 2024 14:46:32 -0700 Subject: [PATCH] fix: Disable streaming if main model does not support it --- aider/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/main.py b/aider/main.py index 293b6cbff..d8a90dfe8 100644 --- a/aider/main.py +++ b/aider/main.py @@ -577,6 +577,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F args.map_refresh = "files" try: + if not main_model.streaming: + if args.stream: + io.tool_warning("Warning: Streaming is not supported by the selected model. Disabling streaming.") + args.stream = False + coder = Coder.create( main_model=main_model, edit_format=args.edit_format,