mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fix: Adjust streaming settings before creating Coder object
This commit is contained in:
parent
99a75ac213
commit
859fc1f184
1 changed files with 7 additions and 8 deletions
|
@ -576,15 +576,14 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if args.cache_prompts and args.map_refresh == "auto":
|
||||
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
|
||||
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
|
||||
|
||||
try:
|
||||
coder = Coder.create(
|
||||
main_model=main_model,
|
||||
edit_format=args.edit_format,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue