@@ -1254,7 +1254,11 @@ def provider_list():
12541254 pass
12551255
12561256 for name , info in sorted (providers .items ()):
1257- status = f"[green]{ SYM_OK } ACTIVE[/green]" if info ["configured" ] else f"[red]{ SYM_FAIL } NOT CONFIGURED[/red]"
1257+ status = (
1258+ f"[green]{ SYM_OK } ACTIVE[/green]"
1259+ if info ["configured" ]
1260+ else f"[red]{ SYM_FAIL } NOT CONFIGURED[/red]"
1261+ )
12581262 model_count = model_counts .get (name , 0 )
12591263 models = f"({ model_count } models)" if model_count > 0 else "(no models)"
12601264 table .add_row (name .upper (), status , models )
@@ -1330,7 +1334,9 @@ def provider_add(provider_name: str, api_key: str):
13301334 # Write updated config
13311335 config_path .write_text (config_yaml )
13321336
1333- console .print (f"\n [green]{ SYM_OK } [/green] Added { len (recommended_models )} recommended models" )
1337+ console .print (
1338+ f"\n [green]{ SYM_OK } [/green] Added { len (recommended_models )} recommended models"
1339+ )
13341340 console .print ("Changes will take effect after service restart" )
13351341 else :
13361342 console .print ("\n No models added. Add them later with:" )
@@ -2322,7 +2328,9 @@ def doctor(auto_fix: bool):
23222328 issues .append (
23232329 ("ERROR" , "LiteLLM config has quoted os.environ/ - remove quotes!" )
23242330 )
2325- console .print (f" [red]{ SYM_FAIL } [/red] LiteLLM config: Quoted os.environ/ found" )
2331+ console .print (
2332+ f" [red]{ SYM_FAIL } [/red] LiteLLM config: Quoted os.environ/ found"
2333+ )
23262334 console .print (
23272335 " [dim]This breaks env var substitution. Edit ~/.config/litellm/config.yaml[/dim]"
23282336 )
@@ -2353,7 +2361,9 @@ def doctor(auto_fix: bool):
23532361 issues .append (
23542362 ("CRITICAL" , "LiteLLM config has hardcoded API keys! Use os.environ/VAR" )
23552363 )
2356- console .print (f" [red]{ SYM_FAIL } [/red] LiteLLM config: Hardcoded API keys detected!" )
2364+ console .print (
2365+ f" [red]{ SYM_FAIL } [/red] LiteLLM config: Hardcoded API keys detected!"
2366+ )
23572367 console .print (
23582368 " [dim]Never commit API keys. Use: api_key: os.environ/NANOGPT_API_KEY[/dim]"
23592369 )
0 commit comments