scale-gp-beta 0.1.0a3__py3-none-any.whl → 0.1.0a5__py3-none-any.whl
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.
- scale_gp_beta/_base_client.py +1 -96
- scale_gp_beta/_client.py +17 -17
- scale_gp_beta/_models.py +5 -2
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/resources/__init__.py +27 -27
- scale_gp_beta/resources/chat/completions.py +86 -92
- scale_gp_beta/resources/datasets.py +569 -0
- scale_gp_beta/resources/{question_sets.py → evaluations.py} +259 -273
- scale_gp_beta/resources/models.py +2 -0
- scale_gp_beta/types/__init__.py +11 -11
- scale_gp_beta/types/dataset.py +27 -0
- scale_gp_beta/types/dataset_create_params.py +17 -0
- scale_gp_beta/types/{question_set_delete_response.py → dataset_delete_response.py} +3 -3
- scale_gp_beta/types/{question_list_params.py → dataset_list_params.py} +4 -2
- scale_gp_beta/types/dataset_retrieve_params.py +11 -0
- scale_gp_beta/types/dataset_update_params.py +13 -0
- scale_gp_beta/types/evaluation.py +30 -0
- scale_gp_beta/types/evaluation_archive_response.py +16 -0
- scale_gp_beta/types/evaluation_create_params.py +734 -0
- scale_gp_beta/types/{question_set_list_params.py → evaluation_list_params.py} +4 -6
- scale_gp_beta/types/evaluation_retrieve_params.py +11 -0
- scale_gp_beta/types/inference_model.py +16 -2
- scale_gp_beta/types/model_list_params.py +1 -0
- {scale_gp_beta-0.1.0a3.dist-info → scale_gp_beta-0.1.0a5.dist-info}/METADATA +24 -4
- {scale_gp_beta-0.1.0a3.dist-info → scale_gp_beta-0.1.0a5.dist-info}/RECORD +27 -27
- {scale_gp_beta-0.1.0a3.dist-info → scale_gp_beta-0.1.0a5.dist-info}/WHEEL +1 -1
- scale_gp_beta/resources/questions.py +0 -396
- scale_gp_beta/types/question.py +0 -68
- scale_gp_beta/types/question_create_params.py +0 -59
- scale_gp_beta/types/question_list.py +0 -27
- scale_gp_beta/types/question_set.py +0 -106
- scale_gp_beta/types/question_set_create_params.py +0 -115
- scale_gp_beta/types/question_set_list.py +0 -27
- scale_gp_beta/types/question_set_retrieve_params.py +0 -12
- scale_gp_beta/types/question_set_update_params.py +0 -23
- {scale_gp_beta-0.1.0a3.dist-info → scale_gp_beta-0.1.0a5.dist-info}/licenses/LICENSE +0 -0
|
@@ -321,6 +321,7 @@ class ModelsResource(SyncAPIResource):
|
|
|
321
321
|
"llmengine",
|
|
322
322
|
"model_zoo",
|
|
323
323
|
"bedrock",
|
|
324
|
+
"xai",
|
|
324
325
|
]
|
|
325
326
|
]
|
|
326
327
|
| NotGiven = NOT_GIVEN,
|
|
@@ -692,6 +693,7 @@ class AsyncModelsResource(AsyncAPIResource):
|
|
|
692
693
|
"llmengine",
|
|
693
694
|
"model_zoo",
|
|
694
695
|
"bedrock",
|
|
696
|
+
"xai",
|
|
695
697
|
]
|
|
696
698
|
]
|
|
697
699
|
| NotGiven = NOT_GIVEN,
|
scale_gp_beta/types/__init__.py
CHANGED
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from .file import File as File
|
|
6
|
-
from .
|
|
6
|
+
from .dataset import Dataset as Dataset
|
|
7
7
|
from .file_list import FileList as FileList
|
|
8
8
|
from .completion import Completion as Completion
|
|
9
|
-
from .
|
|
10
|
-
from .question_list import QuestionList as QuestionList
|
|
9
|
+
from .evaluation import Evaluation as Evaluation
|
|
11
10
|
from .inference_model import InferenceModel as InferenceModel
|
|
12
11
|
from .file_list_params import FileListParams as FileListParams
|
|
13
12
|
from .model_list_params import ModelListParams as ModelListParams
|
|
14
|
-
from .question_set_list import QuestionSetList as QuestionSetList
|
|
15
13
|
from .file_create_params import FileCreateParams as FileCreateParams
|
|
16
14
|
from .file_update_params import FileUpdateParams as FileUpdateParams
|
|
17
15
|
from .inference_response import InferenceResponse as InferenceResponse
|
|
16
|
+
from .dataset_list_params import DatasetListParams as DatasetListParams
|
|
18
17
|
from .model_create_params import ModelCreateParams as ModelCreateParams
|
|
19
18
|
from .model_update_params import ModelUpdateParams as ModelUpdateParams
|
|
20
19
|
from .file_delete_response import FileDeleteResponse as FileDeleteResponse
|
|
21
20
|
from .inference_model_list import InferenceModelList as InferenceModelList
|
|
22
|
-
from .
|
|
21
|
+
from .dataset_create_params import DatasetCreateParams as DatasetCreateParams
|
|
22
|
+
from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams
|
|
23
23
|
from .model_delete_response import ModelDeleteResponse as ModelDeleteResponse
|
|
24
|
-
from .
|
|
24
|
+
from .evaluation_list_params import EvaluationListParams as EvaluationListParams
|
|
25
|
+
from .dataset_delete_response import DatasetDeleteResponse as DatasetDeleteResponse
|
|
26
|
+
from .dataset_retrieve_params import DatasetRetrieveParams as DatasetRetrieveParams
|
|
25
27
|
from .inference_create_params import InferenceCreateParams as InferenceCreateParams
|
|
26
28
|
from .completion_create_params import CompletionCreateParams as CompletionCreateParams
|
|
29
|
+
from .evaluation_create_params import EvaluationCreateParams as EvaluationCreateParams
|
|
27
30
|
from .inference_response_chunk import InferenceResponseChunk as InferenceResponseChunk
|
|
28
|
-
from .question_set_list_params import QuestionSetListParams as QuestionSetListParams
|
|
29
31
|
from .inference_create_response import InferenceCreateResponse as InferenceCreateResponse
|
|
30
|
-
from .
|
|
31
|
-
from .
|
|
32
|
-
from .question_set_delete_response import QuestionSetDeleteResponse as QuestionSetDeleteResponse
|
|
33
|
-
from .question_set_retrieve_params import QuestionSetRetrieveParams as QuestionSetRetrieveParams
|
|
32
|
+
from .evaluation_retrieve_params import EvaluationRetrieveParams as EvaluationRetrieveParams
|
|
33
|
+
from .evaluation_archive_response import EvaluationArchiveResponse as EvaluationArchiveResponse
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["Dataset"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Dataset(BaseModel):
|
|
13
|
+
id: str
|
|
14
|
+
|
|
15
|
+
created_at: datetime
|
|
16
|
+
|
|
17
|
+
created_by_user_id: str
|
|
18
|
+
|
|
19
|
+
current_version_num: int
|
|
20
|
+
|
|
21
|
+
name: str
|
|
22
|
+
|
|
23
|
+
archived_at: Optional[datetime] = None
|
|
24
|
+
|
|
25
|
+
description: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
object: Optional[Literal["dataset"]] = None
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Iterable
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["DatasetCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DatasetCreateParams(TypedDict, total=False):
|
|
12
|
+
data: Required[Iterable[Dict[str, object]]]
|
|
13
|
+
"""Items to be included in the dataset"""
|
|
14
|
+
|
|
15
|
+
name: Required[str]
|
|
16
|
+
|
|
17
|
+
description: str
|
|
@@ -5,12 +5,12 @@ from typing_extensions import Literal
|
|
|
5
5
|
|
|
6
6
|
from .._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["DatasetDeleteResponse"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class DatasetDeleteResponse(BaseModel):
|
|
12
12
|
id: str
|
|
13
13
|
|
|
14
14
|
deleted: bool
|
|
15
15
|
|
|
16
|
-
object: Optional[Literal["
|
|
16
|
+
object: Optional[Literal["dataset"]] = None
|
|
@@ -5,12 +5,14 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Optional
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["DatasetListParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class DatasetListParams(TypedDict, total=False):
|
|
12
12
|
ending_before: Optional[str]
|
|
13
13
|
|
|
14
|
+
include_archived: bool
|
|
15
|
+
|
|
14
16
|
limit: int
|
|
15
17
|
|
|
16
18
|
starting_after: Optional[str]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["DatasetRetrieveParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DatasetRetrieveParams(TypedDict, total=False):
|
|
11
|
+
include_archived: bool
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["DatasetUpdateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DatasetUpdateParams(TypedDict, total=False):
|
|
11
|
+
description: str
|
|
12
|
+
|
|
13
|
+
name: str
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .dataset import Dataset
|
|
8
|
+
from .._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["Evaluation"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Evaluation(BaseModel):
|
|
14
|
+
id: str
|
|
15
|
+
|
|
16
|
+
created_at: datetime
|
|
17
|
+
|
|
18
|
+
created_by_user_id: str
|
|
19
|
+
|
|
20
|
+
datasets: List[Dataset]
|
|
21
|
+
|
|
22
|
+
name: str
|
|
23
|
+
|
|
24
|
+
status: Literal["failed", "completed", "running"]
|
|
25
|
+
|
|
26
|
+
archived_at: Optional[datetime] = None
|
|
27
|
+
|
|
28
|
+
description: Optional[str] = None
|
|
29
|
+
|
|
30
|
+
object: Optional[Literal["evaluation"]] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["EvaluationArchiveResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EvaluationArchiveResponse(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
deleted: bool
|
|
15
|
+
|
|
16
|
+
object: Optional[Literal["evaluation"]] = None
|