together 1.3.2__tar.gz → 1.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {together-1.3.2 → together-1.3.3}/PKG-INFO +1 -1
- {together-1.3.2 → together-1.3.3}/pyproject.toml +1 -1
- together-1.3.3/src/together/cli/api/utils.py +30 -0
- together-1.3.2/src/together/cli/api/utils.py +0 -23
- {together-1.3.2 → together-1.3.3}/LICENSE +0 -0
- {together-1.3.2 → together-1.3.3}/README.md +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/abstract/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/abstract/api_requestor.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/chat.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/completions.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/files.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/finetune.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/images.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/api/models.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/cli/cli.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/client.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/constants.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/error.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/filemanager.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/base.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/complete.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/embeddings.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/files.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/finetune.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/images.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/legacy/models.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/chat/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/chat/completions.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/completions.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/embeddings.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/files.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/finetune.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/images.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/models.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/resources/rerank.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/together_response.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/abstract.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/chat_completions.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/common.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/completions.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/embeddings.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/error.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/files.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/finetune.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/images.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/models.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/types/rerank.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/utils/__init__.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/utils/_log.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/utils/api_helpers.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/utils/files.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/utils/tools.py +0 -0
- {together-1.3.2 → together-1.3.3}/src/together/version.py +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from gettext import gettext as _
|
|
4
|
+
from typing import Literal
|
|
5
|
+
|
|
6
|
+
import click
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AutoIntParamType(click.ParamType):
|
|
10
|
+
name = "integer_or_max"
|
|
11
|
+
_number_class = int
|
|
12
|
+
|
|
13
|
+
def convert(
|
|
14
|
+
self, value: str, param: click.Parameter | None, ctx: click.Context | None
|
|
15
|
+
) -> int | Literal["max"] | None:
|
|
16
|
+
if value == "max":
|
|
17
|
+
return "max"
|
|
18
|
+
try:
|
|
19
|
+
return int(value)
|
|
20
|
+
except ValueError:
|
|
21
|
+
self.fail(
|
|
22
|
+
_("{value!r} is not a valid {number_type}.").format(
|
|
23
|
+
value=value, number_type=self.name
|
|
24
|
+
),
|
|
25
|
+
param,
|
|
26
|
+
ctx,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
INT_WITH_MAX = AutoIntParamType()
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import click
|
|
4
|
-
|
|
5
|
-
from typing import Literal
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class AutoIntParamType(click.ParamType):
|
|
9
|
-
name = "integer"
|
|
10
|
-
|
|
11
|
-
def convert(
|
|
12
|
-
self, value: str, param: click.Parameter | None, ctx: click.Context | None
|
|
13
|
-
) -> int | Literal["max"] | None:
|
|
14
|
-
if isinstance(value, int):
|
|
15
|
-
return value
|
|
16
|
-
|
|
17
|
-
if value == "max":
|
|
18
|
-
return "max"
|
|
19
|
-
|
|
20
|
-
self.fail("Invalid integer value: {value}")
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
INT_WITH_MAX = AutoIntParamType()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|