Commit 9890482
authored
Refactor LitServer initialization parameters for type safety (#555)
- Updated the `accelerator` parameter to use a more specific Literal type, allowing only "cpu", "cuda", "mps", or "auto".
- Changed the `devices` parameter to accept either an integer or the Literal "auto", enhancing clarity and type checking.
- Added a comment indicating that several arguments are deprecated and will be removed in version 0.3.0.1 parent bef6616 commit 9890482
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
615 | | - | |
| 614 | + | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| |||
0 commit comments