scale-gp-beta 0.1.0a39__py3-none-any.whl → 0.1.0a40__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 (36) hide show
  1. scale_gp_beta/_base_client.py +8 -2
  2. scale_gp_beta/_client.py +564 -143
  3. scale_gp_beta/_streaming.py +12 -10
  4. scale_gp_beta/_types.py +3 -2
  5. scale_gp_beta/_version.py +1 -1
  6. scale_gp_beta/resources/chat/completions.py +4 -0
  7. scale_gp_beta/resources/credentials.py +4 -0
  8. scale_gp_beta/resources/dataset_items.py +4 -0
  9. scale_gp_beta/resources/datasets.py +4 -0
  10. scale_gp_beta/resources/evaluation_items.py +4 -0
  11. scale_gp_beta/resources/evaluations.py +4 -0
  12. scale_gp_beta/resources/files/files.py +4 -0
  13. scale_gp_beta/resources/models.py +4 -0
  14. scale_gp_beta/resources/questions.py +4 -0
  15. scale_gp_beta/resources/spans.py +28 -0
  16. scale_gp_beta/types/chat/completion_models_params.py +2 -0
  17. scale_gp_beta/types/credential_list_params.py +2 -0
  18. scale_gp_beta/types/dataset_item_list_params.py +2 -0
  19. scale_gp_beta/types/dataset_list_params.py +2 -0
  20. scale_gp_beta/types/evaluation.py +2 -0
  21. scale_gp_beta/types/evaluation_create_params.py +2 -0
  22. scale_gp_beta/types/evaluation_item_list_params.py +2 -0
  23. scale_gp_beta/types/evaluation_list_params.py +2 -0
  24. scale_gp_beta/types/evaluation_task.py +5 -1
  25. scale_gp_beta/types/evaluation_task_param.py +5 -1
  26. scale_gp_beta/types/file_import_from_cloud_response.py +4 -0
  27. scale_gp_beta/types/file_list_params.py +2 -0
  28. scale_gp_beta/types/inference_create_params.py +2 -0
  29. scale_gp_beta/types/model_list_params.py +2 -0
  30. scale_gp_beta/types/question_list_params.py +2 -0
  31. scale_gp_beta/types/span_assessment.py +2 -0
  32. scale_gp_beta/types/span_search_params.py +11 -0
  33. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a40.dist-info}/METADATA +3 -40
  34. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a40.dist-info}/RECORD +36 -36
  35. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a40.dist-info}/WHEEL +0 -0
  36. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a40.dist-info}/licenses/LICENSE +0 -0
@@ -1247,9 +1247,12 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1247
1247
  *,
1248
1248
  cast_to: Type[ResponseT],
1249
1249
  body: Body | None = None,
1250
+ files: RequestFiles | None = None,
1250
1251
  options: RequestOptions = {},
1251
1252
  ) -> ResponseT:
1252
- opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1253
+ opts = FinalRequestOptions.construct(
1254
+ method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1255
+ )
1253
1256
  return self.request(cast_to, opts)
1254
1257
 
1255
1258
  def put(
@@ -1767,9 +1770,12 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1767
1770
  *,
1768
1771
  cast_to: Type[ResponseT],
1769
1772
  body: Body | None = None,
1773
+ files: RequestFiles | None = None,
1770
1774
  options: RequestOptions = {},
1771
1775
  ) -> ResponseT:
1772
- opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1776
+ opts = FinalRequestOptions.construct(
1777
+ method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1778
+ )
1773
1779
  return await self.request(cast_to, opts)
1774
1780
 
1775
1781
  async def put(