mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +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":
|
if args.cache_prompts and args.map_refresh == "auto":
|
||||||
args.map_refresh = "files"
|
args.map_refresh = "files"
|
||||||
|
|
||||||
try:
|
if not main_model.streaming:
|
||||||
if not main_model.streaming:
|
if args.stream:
|
||||||
if args.stream:
|
io.tool_warning(
|
||||||
io.tool_warning(
|
"Warning: Streaming is not supported by the selected model. Disabling streaming."
|
||||||
"Warning: Streaming is not supported by the selected model. Disabling"
|
)
|
||||||
" streaming."
|
args.stream = False
|
||||||
)
|
|
||||||
args.stream = False
|
|
||||||
|
|
||||||
|
try:
|
||||||
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