File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -771,7 +771,10 @@ def __init__(
771771 if os .path .exists (abs_fname ):
772772 self .abs_read_only_fnames .add (abs_fname )
773773 else :
774- self .io .tool_warning (f"Error: Read-only file { fname } does not exist. Skipping." )
774+ if verbose :
775+ self .io .tool_warning (
776+ f"Error: Read-only file { fname } does not exist. Skipping."
777+ )
775778
776779 if read_only_stubs_fnames :
777780 self .abs_read_only_stubs_fnames = set ()
@@ -780,9 +783,10 @@ def __init__(
780783 if os .path .exists (abs_fname ):
781784 self .abs_read_only_stubs_fnames .add (abs_fname )
782785 else :
783- self .io .tool_warning (
784- f"Error: Read-only (stub) file { fname } does not exist. Skipping."
785- )
786+ if verbose :
787+ self .io .tool_warning (
788+ f"Error: Read-only (stub) file { fname } does not exist. Skipping."
789+ )
786790
787791 if rules_fnames :
788792 self .abs_rules_fnames = set ()
@@ -791,7 +795,8 @@ def __init__(
791795 if os .path .exists (abs_fname ):
792796 self .abs_rules_fnames .add (abs_fname )
793797 else :
794- self .io .tool_warning (f"Error: Rules file { fname } does not exist. Skipping." )
798+ if verbose :
799+ self .io .tool_warning (f"Error: Rules file { fname } does not exist. Skipping." )
795800
796801 if map_tokens is None :
797802 use_repo_map = main_model .use_repo_map
Original file line number Diff line number Diff line change @@ -1873,8 +1873,11 @@ async def sanity_check_model(io, model):
18731873 " for `setx` to take effect."
18741874 )
18751875 elif not model .keys_in_environment :
1876- show = True
1877- io .tool_warning (f"Warning for { model } : Unknown which environment variables are required." )
1876+ if io .verbose :
1877+ show = True
1878+ io .tool_warning (
1879+ f"Warning for { model } : Unknown which environment variables are required."
1880+ )
18781881 await check_for_dependencies (io , model .name )
18791882 if not (model .info .get ("max_input_tokens" ) or model .info .get ("max_tokens" )):
18801883 show = True
You can’t perform that action at this time.
0 commit comments