File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " prime-cli"
3
- version = " 0.2.10 "
3
+ version = " 0.2.11 "
4
4
description = " Prime Intellect CLI"
5
5
readme = " README.md"
6
6
requires-python = " >=3.9"
Original file line number Diff line number Diff line change @@ -389,12 +389,13 @@ def select_provider_from_configs(
389
389
key = lambda x : x .prices .price if x .prices else float ("inf" )
390
390
)
391
391
392
- # Remove duplicates while preserving order
393
- seen_providers = set ()
392
+ seen_provider_types = set ()
394
393
unique_configs = []
395
394
for gpu in matching_configs :
396
- if gpu .provider not in seen_providers :
397
- seen_providers .add (gpu .provider )
395
+ # Create unique key combining provider and spot status
396
+ provider_type = (gpu .provider , gpu .is_spot )
397
+ if provider_type not in seen_provider_types :
398
+ seen_provider_types .add (provider_type )
398
399
unique_configs .append (gpu )
399
400
400
401
if len (unique_configs ) > 1 :
@@ -406,7 +407,10 @@ def select_provider_from_configs(
406
407
if price != float ("inf" )
407
408
else "N/A"
408
409
)
409
- console .print (f"{ idx } . { gpu .provider } ({ price_display } )" )
410
+ spot_display = " (spot)" if gpu .is_spot else ""
411
+ console .print (
412
+ f"{ idx } . { gpu .provider } { spot_display } ({ price_display } )"
413
+ )
410
414
411
415
provider_idx = typer .prompt (
412
416
"Select provider number" ,
You can’t perform that action at this time.
0 commit comments