fix: Disable streaming if main model does not support it

This commit is contained in:
Paul Gauthier (aider) 2024-09-12 14:46:32 -07:00
parent fb420de09e
commit efa0c0e292

View file

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