scale-gp-beta 0.1.0a4__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/_client.py +17 -17
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/resources/__init__.py +27 -27
- scale_gp_beta/resources/datasets.py +569 -0
- scale_gp_beta/resources/{question_sets.py → evaluations.py} +259 -273
- 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-0.1.0a4.dist-info → scale_gp_beta-0.1.0a5.dist-info}/METADATA +1 -1
- {scale_gp_beta-0.1.0a4.dist-info → scale_gp_beta-0.1.0a5.dist-info}/RECORD +21 -21
- 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.0a4.dist-info → scale_gp_beta-0.1.0a5.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a4.dist-info → scale_gp_beta-0.1.0a5.dist-info}/licenses/LICENSE +0 -0
scale_gp_beta/_client.py
CHANGED
|
@@ -24,7 +24,7 @@ from ._utils import (
|
|
|
24
24
|
get_async_library,
|
|
25
25
|
)
|
|
26
26
|
from ._version import __version__
|
|
27
|
-
from .resources import models,
|
|
27
|
+
from .resources import models, datasets, inference, completions, evaluations
|
|
28
28
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
29
29
|
from ._exceptions import APIStatusError, SGPClientError
|
|
30
30
|
from ._base_client import (
|
|
@@ -57,10 +57,10 @@ class SGPClient(SyncAPIClient):
|
|
|
57
57
|
completions: completions.CompletionsResource
|
|
58
58
|
chat: chat.ChatResource
|
|
59
59
|
inference: inference.InferenceResource
|
|
60
|
-
questions: questions.QuestionsResource
|
|
61
|
-
question_sets: question_sets.QuestionSetsResource
|
|
62
60
|
files: files.FilesResource
|
|
63
61
|
models: models.ModelsResource
|
|
62
|
+
datasets: datasets.DatasetsResource
|
|
63
|
+
evaluations: evaluations.EvaluationsResource
|
|
64
64
|
with_raw_response: SGPClientWithRawResponse
|
|
65
65
|
with_streaming_response: SGPClientWithStreamedResponse
|
|
66
66
|
|
|
@@ -157,10 +157,10 @@ class SGPClient(SyncAPIClient):
|
|
|
157
157
|
self.completions = completions.CompletionsResource(self)
|
|
158
158
|
self.chat = chat.ChatResource(self)
|
|
159
159
|
self.inference = inference.InferenceResource(self)
|
|
160
|
-
self.questions = questions.QuestionsResource(self)
|
|
161
|
-
self.question_sets = question_sets.QuestionSetsResource(self)
|
|
162
160
|
self.files = files.FilesResource(self)
|
|
163
161
|
self.models = models.ModelsResource(self)
|
|
162
|
+
self.datasets = datasets.DatasetsResource(self)
|
|
163
|
+
self.evaluations = evaluations.EvaluationsResource(self)
|
|
164
164
|
self.with_raw_response = SGPClientWithRawResponse(self)
|
|
165
165
|
self.with_streaming_response = SGPClientWithStreamedResponse(self)
|
|
166
166
|
|
|
@@ -278,10 +278,10 @@ class AsyncSGPClient(AsyncAPIClient):
|
|
|
278
278
|
completions: completions.AsyncCompletionsResource
|
|
279
279
|
chat: chat.AsyncChatResource
|
|
280
280
|
inference: inference.AsyncInferenceResource
|
|
281
|
-
questions: questions.AsyncQuestionsResource
|
|
282
|
-
question_sets: question_sets.AsyncQuestionSetsResource
|
|
283
281
|
files: files.AsyncFilesResource
|
|
284
282
|
models: models.AsyncModelsResource
|
|
283
|
+
datasets: datasets.AsyncDatasetsResource
|
|
284
|
+
evaluations: evaluations.AsyncEvaluationsResource
|
|
285
285
|
with_raw_response: AsyncSGPClientWithRawResponse
|
|
286
286
|
with_streaming_response: AsyncSGPClientWithStreamedResponse
|
|
287
287
|
|
|
@@ -378,10 +378,10 @@ class AsyncSGPClient(AsyncAPIClient):
|
|
|
378
378
|
self.completions = completions.AsyncCompletionsResource(self)
|
|
379
379
|
self.chat = chat.AsyncChatResource(self)
|
|
380
380
|
self.inference = inference.AsyncInferenceResource(self)
|
|
381
|
-
self.questions = questions.AsyncQuestionsResource(self)
|
|
382
|
-
self.question_sets = question_sets.AsyncQuestionSetsResource(self)
|
|
383
381
|
self.files = files.AsyncFilesResource(self)
|
|
384
382
|
self.models = models.AsyncModelsResource(self)
|
|
383
|
+
self.datasets = datasets.AsyncDatasetsResource(self)
|
|
384
|
+
self.evaluations = evaluations.AsyncEvaluationsResource(self)
|
|
385
385
|
self.with_raw_response = AsyncSGPClientWithRawResponse(self)
|
|
386
386
|
self.with_streaming_response = AsyncSGPClientWithStreamedResponse(self)
|
|
387
387
|
|
|
@@ -500,10 +500,10 @@ class SGPClientWithRawResponse:
|
|
|
500
500
|
self.completions = completions.CompletionsResourceWithRawResponse(client.completions)
|
|
501
501
|
self.chat = chat.ChatResourceWithRawResponse(client.chat)
|
|
502
502
|
self.inference = inference.InferenceResourceWithRawResponse(client.inference)
|
|
503
|
-
self.questions = questions.QuestionsResourceWithRawResponse(client.questions)
|
|
504
|
-
self.question_sets = question_sets.QuestionSetsResourceWithRawResponse(client.question_sets)
|
|
505
503
|
self.files = files.FilesResourceWithRawResponse(client.files)
|
|
506
504
|
self.models = models.ModelsResourceWithRawResponse(client.models)
|
|
505
|
+
self.datasets = datasets.DatasetsResourceWithRawResponse(client.datasets)
|
|
506
|
+
self.evaluations = evaluations.EvaluationsResourceWithRawResponse(client.evaluations)
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
class AsyncSGPClientWithRawResponse:
|
|
@@ -511,10 +511,10 @@ class AsyncSGPClientWithRawResponse:
|
|
|
511
511
|
self.completions = completions.AsyncCompletionsResourceWithRawResponse(client.completions)
|
|
512
512
|
self.chat = chat.AsyncChatResourceWithRawResponse(client.chat)
|
|
513
513
|
self.inference = inference.AsyncInferenceResourceWithRawResponse(client.inference)
|
|
514
|
-
self.questions = questions.AsyncQuestionsResourceWithRawResponse(client.questions)
|
|
515
|
-
self.question_sets = question_sets.AsyncQuestionSetsResourceWithRawResponse(client.question_sets)
|
|
516
514
|
self.files = files.AsyncFilesResourceWithRawResponse(client.files)
|
|
517
515
|
self.models = models.AsyncModelsResourceWithRawResponse(client.models)
|
|
516
|
+
self.datasets = datasets.AsyncDatasetsResourceWithRawResponse(client.datasets)
|
|
517
|
+
self.evaluations = evaluations.AsyncEvaluationsResourceWithRawResponse(client.evaluations)
|
|
518
518
|
|
|
519
519
|
|
|
520
520
|
class SGPClientWithStreamedResponse:
|
|
@@ -522,10 +522,10 @@ class SGPClientWithStreamedResponse:
|
|
|
522
522
|
self.completions = completions.CompletionsResourceWithStreamingResponse(client.completions)
|
|
523
523
|
self.chat = chat.ChatResourceWithStreamingResponse(client.chat)
|
|
524
524
|
self.inference = inference.InferenceResourceWithStreamingResponse(client.inference)
|
|
525
|
-
self.questions = questions.QuestionsResourceWithStreamingResponse(client.questions)
|
|
526
|
-
self.question_sets = question_sets.QuestionSetsResourceWithStreamingResponse(client.question_sets)
|
|
527
525
|
self.files = files.FilesResourceWithStreamingResponse(client.files)
|
|
528
526
|
self.models = models.ModelsResourceWithStreamingResponse(client.models)
|
|
527
|
+
self.datasets = datasets.DatasetsResourceWithStreamingResponse(client.datasets)
|
|
528
|
+
self.evaluations = evaluations.EvaluationsResourceWithStreamingResponse(client.evaluations)
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
class AsyncSGPClientWithStreamedResponse:
|
|
@@ -533,10 +533,10 @@ class AsyncSGPClientWithStreamedResponse:
|
|
|
533
533
|
self.completions = completions.AsyncCompletionsResourceWithStreamingResponse(client.completions)
|
|
534
534
|
self.chat = chat.AsyncChatResourceWithStreamingResponse(client.chat)
|
|
535
535
|
self.inference = inference.AsyncInferenceResourceWithStreamingResponse(client.inference)
|
|
536
|
-
self.questions = questions.AsyncQuestionsResourceWithStreamingResponse(client.questions)
|
|
537
|
-
self.question_sets = question_sets.AsyncQuestionSetsResourceWithStreamingResponse(client.question_sets)
|
|
538
536
|
self.files = files.AsyncFilesResourceWithStreamingResponse(client.files)
|
|
539
537
|
self.models = models.AsyncModelsResourceWithStreamingResponse(client.models)
|
|
538
|
+
self.datasets = datasets.AsyncDatasetsResourceWithStreamingResponse(client.datasets)
|
|
539
|
+
self.evaluations = evaluations.AsyncEvaluationsResourceWithStreamingResponse(client.evaluations)
|
|
540
540
|
|
|
541
541
|
|
|
542
542
|
Client = SGPClient
|
scale_gp_beta/_version.py
CHANGED
|
@@ -24,6 +24,14 @@ from .models import (
|
|
|
24
24
|
ModelsResourceWithStreamingResponse,
|
|
25
25
|
AsyncModelsResourceWithStreamingResponse,
|
|
26
26
|
)
|
|
27
|
+
from .datasets import (
|
|
28
|
+
DatasetsResource,
|
|
29
|
+
AsyncDatasetsResource,
|
|
30
|
+
DatasetsResourceWithRawResponse,
|
|
31
|
+
AsyncDatasetsResourceWithRawResponse,
|
|
32
|
+
DatasetsResourceWithStreamingResponse,
|
|
33
|
+
AsyncDatasetsResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
27
35
|
from .inference import (
|
|
28
36
|
InferenceResource,
|
|
29
37
|
AsyncInferenceResource,
|
|
@@ -32,14 +40,6 @@ from .inference import (
|
|
|
32
40
|
InferenceResourceWithStreamingResponse,
|
|
33
41
|
AsyncInferenceResourceWithStreamingResponse,
|
|
34
42
|
)
|
|
35
|
-
from .questions import (
|
|
36
|
-
QuestionsResource,
|
|
37
|
-
AsyncQuestionsResource,
|
|
38
|
-
QuestionsResourceWithRawResponse,
|
|
39
|
-
AsyncQuestionsResourceWithRawResponse,
|
|
40
|
-
QuestionsResourceWithStreamingResponse,
|
|
41
|
-
AsyncQuestionsResourceWithStreamingResponse,
|
|
42
|
-
)
|
|
43
43
|
from .completions import (
|
|
44
44
|
CompletionsResource,
|
|
45
45
|
AsyncCompletionsResource,
|
|
@@ -48,13 +48,13 @@ from .completions import (
|
|
|
48
48
|
CompletionsResourceWithStreamingResponse,
|
|
49
49
|
AsyncCompletionsResourceWithStreamingResponse,
|
|
50
50
|
)
|
|
51
|
-
from .
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
from .evaluations import (
|
|
52
|
+
EvaluationsResource,
|
|
53
|
+
AsyncEvaluationsResource,
|
|
54
|
+
EvaluationsResourceWithRawResponse,
|
|
55
|
+
AsyncEvaluationsResourceWithRawResponse,
|
|
56
|
+
EvaluationsResourceWithStreamingResponse,
|
|
57
|
+
AsyncEvaluationsResourceWithStreamingResponse,
|
|
58
58
|
)
|
|
59
59
|
|
|
60
60
|
__all__ = [
|
|
@@ -76,18 +76,6 @@ __all__ = [
|
|
|
76
76
|
"AsyncInferenceResourceWithRawResponse",
|
|
77
77
|
"InferenceResourceWithStreamingResponse",
|
|
78
78
|
"AsyncInferenceResourceWithStreamingResponse",
|
|
79
|
-
"QuestionsResource",
|
|
80
|
-
"AsyncQuestionsResource",
|
|
81
|
-
"QuestionsResourceWithRawResponse",
|
|
82
|
-
"AsyncQuestionsResourceWithRawResponse",
|
|
83
|
-
"QuestionsResourceWithStreamingResponse",
|
|
84
|
-
"AsyncQuestionsResourceWithStreamingResponse",
|
|
85
|
-
"QuestionSetsResource",
|
|
86
|
-
"AsyncQuestionSetsResource",
|
|
87
|
-
"QuestionSetsResourceWithRawResponse",
|
|
88
|
-
"AsyncQuestionSetsResourceWithRawResponse",
|
|
89
|
-
"QuestionSetsResourceWithStreamingResponse",
|
|
90
|
-
"AsyncQuestionSetsResourceWithStreamingResponse",
|
|
91
79
|
"FilesResource",
|
|
92
80
|
"AsyncFilesResource",
|
|
93
81
|
"FilesResourceWithRawResponse",
|
|
@@ -100,4 +88,16 @@ __all__ = [
|
|
|
100
88
|
"AsyncModelsResourceWithRawResponse",
|
|
101
89
|
"ModelsResourceWithStreamingResponse",
|
|
102
90
|
"AsyncModelsResourceWithStreamingResponse",
|
|
91
|
+
"DatasetsResource",
|
|
92
|
+
"AsyncDatasetsResource",
|
|
93
|
+
"DatasetsResourceWithRawResponse",
|
|
94
|
+
"AsyncDatasetsResourceWithRawResponse",
|
|
95
|
+
"DatasetsResourceWithStreamingResponse",
|
|
96
|
+
"AsyncDatasetsResourceWithStreamingResponse",
|
|
97
|
+
"EvaluationsResource",
|
|
98
|
+
"AsyncEvaluationsResource",
|
|
99
|
+
"EvaluationsResourceWithRawResponse",
|
|
100
|
+
"AsyncEvaluationsResourceWithRawResponse",
|
|
101
|
+
"EvaluationsResourceWithStreamingResponse",
|
|
102
|
+
"AsyncEvaluationsResourceWithStreamingResponse",
|
|
103
103
|
]
|