scale-gp-beta 0.1.0a30__py3-none-any.whl → 0.1.0a32__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.
Files changed (57) hide show
  1. scale_gp_beta/__init__.py +3 -1
  2. scale_gp_beta/_base_client.py +12 -12
  3. scale_gp_beta/_client.py +20 -20
  4. scale_gp_beta/_compat.py +48 -48
  5. scale_gp_beta/_models.py +51 -45
  6. scale_gp_beta/_qs.py +7 -7
  7. scale_gp_beta/_types.py +53 -12
  8. scale_gp_beta/_utils/__init__.py +9 -2
  9. scale_gp_beta/_utils/_compat.py +45 -0
  10. scale_gp_beta/_utils/_datetime_parse.py +136 -0
  11. scale_gp_beta/_utils/_transform.py +13 -3
  12. scale_gp_beta/_utils/_typing.py +6 -1
  13. scale_gp_beta/_utils/_utils.py +4 -5
  14. scale_gp_beta/_version.py +1 -1
  15. scale_gp_beta/resources/__init__.py +6 -6
  16. scale_gp_beta/resources/chat/completions.py +236 -236
  17. scale_gp_beta/resources/completions.py +142 -142
  18. scale_gp_beta/resources/dataset_items.py +27 -27
  19. scale_gp_beta/resources/datasets.py +38 -38
  20. scale_gp_beta/resources/evaluation_items.py +19 -19
  21. scale_gp_beta/resources/evaluations.py +97 -75
  22. scale_gp_beta/resources/files/content.py +3 -3
  23. scale_gp_beta/resources/files/files.py +21 -21
  24. scale_gp_beta/resources/inference.py +7 -7
  25. scale_gp_beta/resources/models.py +71 -73
  26. scale_gp_beta/resources/questions.py +43 -43
  27. scale_gp_beta/resources/responses.py +34 -34
  28. scale_gp_beta/resources/spans.py +81 -81
  29. scale_gp_beta/types/__init__.py +4 -4
  30. scale_gp_beta/types/chat/chat_completion.py +114 -19
  31. scale_gp_beta/types/chat/chat_completion_chunk.py +84 -14
  32. scale_gp_beta/types/chat/completion_create_params.py +5 -3
  33. scale_gp_beta/types/completion.py +36 -6
  34. scale_gp_beta/types/completion_create_params.py +5 -3
  35. scale_gp_beta/types/container.py +2 -2
  36. scale_gp_beta/types/container_param.py +2 -2
  37. scale_gp_beta/types/dataset_create_params.py +4 -2
  38. scale_gp_beta/types/dataset_list_params.py +3 -2
  39. scale_gp_beta/types/dataset_update_params.py +3 -2
  40. scale_gp_beta/types/evaluation.py +7 -1
  41. scale_gp_beta/types/evaluation_create_params.py +17 -6
  42. scale_gp_beta/types/evaluation_list_params.py +3 -1
  43. scale_gp_beta/types/evaluation_task.py +6 -1
  44. scale_gp_beta/types/evaluation_task_param.py +4 -3
  45. scale_gp_beta/types/evaluation_update_params.py +3 -2
  46. scale_gp_beta/types/inference_model.py +10 -1
  47. scale_gp_beta/types/model_create_params.py +6 -4
  48. scale_gp_beta/types/model_update_params.py +6 -4
  49. scale_gp_beta/types/question_create_params.py +4 -2
  50. scale_gp_beta/types/response.py +852 -142
  51. scale_gp_beta/types/response_create_params.py +7 -5
  52. scale_gp_beta/types/response_create_response.py +6072 -1012
  53. scale_gp_beta/types/span_search_params.py +8 -7
  54. {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/METADATA +1 -1
  55. {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/RECORD +57 -55
  56. {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/WHEEL +0 -0
  57. {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/licenses/LICENSE +0 -0
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List
6
5
  from typing_extensions import TypedDict
7
6
 
7
+ from .._types import SequenceNotStr
8
+
8
9
  __all__ = ["EvaluationUpdateParams"]
9
10
 
10
11
 
@@ -13,5 +14,5 @@ class EvaluationUpdateParams(TypedDict, total=False):
13
14
 
14
15
  name: str
15
16
 
16
- tags: List[str]
17
+ tags: SequenceNotStr[str]
17
18
  """The tags associated with the entity"""
@@ -131,12 +131,17 @@ class VendorConfigurationLlmEngineVendorConfiguration(BaseModel):
131
131
 
132
132
  storage: Optional[str] = None
133
133
 
134
- __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
135
134
  if TYPE_CHECKING:
135
+ # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
136
+ # value to this field, so for compatibility we avoid doing it at runtime.
137
+ __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
138
+
136
139
  # Stub to indicate that arbitrary properties are accepted.
137
140
  # To access properties that are not valid identifiers you can use `getattr`, e.g.
138
141
  # `getattr(obj, '$type')`
139
142
  def __getattr__(self, attr: str) -> object: ...
143
+ else:
144
+ __pydantic_extra__: Dict[str, object]
140
145
 
141
146
 
142
147
  VendorConfiguration: TypeAlias = Union[
@@ -174,6 +179,10 @@ class InferenceModel(BaseModel):
174
179
 
175
180
  status: Literal["failed", "ready", "deploying"]
176
181
 
182
+ availability: Optional[Literal["unknown", "available", "unavailable"]] = FieldInfo(
183
+ alias="model_availability", default=None
184
+ )
185
+
177
186
  metadata: Optional[Dict[str, object]] = FieldInfo(alias="model_metadata", default=None)
178
187
 
179
188
  object: Optional[Literal["model"]] = None
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union
5
+ from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "ModelCreateParams",
10
12
  "LaunchModelCreateRequest",
@@ -32,7 +34,7 @@ class LaunchModelCreateRequest(TypedDict, total=False):
32
34
 
33
35
 
34
36
  class LaunchModelCreateRequestVendorConfigurationModelImage(TypedDict, total=False):
35
- command: Required[List[str]]
37
+ command: Required[SequenceNotStr[str]]
36
38
 
37
39
  registry: Required[str]
38
40
 
@@ -52,7 +54,7 @@ class LaunchModelCreateRequestVendorConfigurationModelImage(TypedDict, total=Fal
52
54
 
53
55
  response_schema: Dict[str, object]
54
56
 
55
- streaming_command: List[str]
57
+ streaming_command: SequenceNotStr[str]
56
58
 
57
59
  streaming_predict_route: str
58
60
 
@@ -147,7 +149,7 @@ class LlmEngineModelCreateRequestVendorConfigurationTyped(TypedDict, total=False
147
149
 
148
150
  per_worker: int
149
151
 
150
- post_inference_hooks: List[str]
152
+ post_inference_hooks: SequenceNotStr[str]
151
153
 
152
154
  public_inference: bool
153
155
 
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union
5
+ from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "ModelUpdateParams",
10
12
  "DefaultModelPatchRequest",
@@ -31,7 +33,7 @@ class ModelConfigurationPatchRequest(TypedDict, total=False):
31
33
  class ModelConfigurationPatchRequestVendorConfigurationPartialLaunchVendorConfigurationModelImage(
32
34
  TypedDict, total=False
33
35
  ):
34
- command: List[str]
36
+ command: SequenceNotStr[str]
35
37
 
36
38
  env_vars: Dict[str, object]
37
39
 
@@ -49,7 +51,7 @@ class ModelConfigurationPatchRequestVendorConfigurationPartialLaunchVendorConfig
49
51
 
50
52
  response_schema: Dict[str, object]
51
53
 
52
- streaming_command: List[str]
54
+ streaming_command: SequenceNotStr[str]
53
55
 
54
56
  streaming_predict_route: str
55
57
 
@@ -133,7 +135,7 @@ class ModelConfigurationPatchRequestVendorConfigurationPartialLlmEngineVendorCon
133
135
 
134
136
  per_worker: int
135
137
 
136
- post_inference_hooks: List[str]
138
+ post_inference_hooks: SequenceNotStr[str]
137
139
 
138
140
  public_inference: bool
139
141
 
@@ -2,9 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List, Union
5
+ from typing import Dict, Union
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
9
+
8
10
  __all__ = [
9
11
  "QuestionCreateParams",
10
12
  "CategoricalQuestionRequest",
@@ -32,7 +34,7 @@ class CategoricalQuestionRequest(TypedDict, total=False):
32
34
 
33
35
 
34
36
  class CategoricalQuestionRequestConfiguration(TypedDict, total=False):
35
- choices: Required[List[str]]
37
+ choices: Required[SequenceNotStr[str]]
36
38
  """Categorical answer choices (must contain at least one entry)"""
37
39
 
38
40