mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
fix: Disable streaming if main model does not support it
This commit is contained in:
parent
fb420de09e
commit
efa0c0e292
1 changed files with 5 additions and 0 deletions
|
@ -577,6 +577,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
args.map_refresh = "files"
|
args.map_refresh = "files"
|
||||||
|
|
||||||
try:
|
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(
|
coder = Coder.create(
|
||||||
main_model=main_model,
|
main_model=main_model,
|
||||||
edit_format=args.edit_format,
|
edit_format=args.edit_format,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue