Commit 4db3178
cellwebb
fix(cli): load API keys from environment for model switching
• Add API key loading from environment variables when switching models
• Validate presence of required API keys before attempting model switch
• Display helpful error messages when environment variables are missing
• Apply consistent API key handling in both model add wizard and switch commands
• Prevent model switching failures due to missing authentication credentials1 parent e471e8b commit 4db3178
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
| 459 | + | |
450 | 460 | | |
451 | 461 | | |
452 | 462 | | |
| |||
562 | 572 | | |
563 | 573 | | |
564 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
565 | 586 | | |
566 | 587 | | |
567 | 588 | | |
| 589 | + | |
568 | 590 | | |
569 | 591 | | |
570 | 592 | | |
| |||
0 commit comments