seekrai 0.3.0__py3-none-any.whl → 0.3.2__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.
@@ -442,7 +442,9 @@ class APIRequestor:
442
442
  ) from e
443
443
 
444
444
  # retry on 5XX error or rate-limit
445
- if result.status_code > 300:
445
+ if result.status_code > 300 and result.status_code < 500:
446
+ raise httpx.HTTPError(result.content.decode())
447
+ elif result.status_code >= 500:
446
448
  raise httpx.HTTPError("Error communicating with API: {}".format(result))
447
449
 
448
450
  utils.log_debug(
@@ -129,7 +129,7 @@ class FineTuning:
129
129
 
130
130
  response, _, _ = requestor.request(
131
131
  options=SeekrFlowRequest(
132
- method="POST",
132
+ method="PUT",
133
133
  url=f"flow/fine-tunes/{id}/cancel",
134
134
  ),
135
135
  stream=False,
seekrai/types/finetune.py CHANGED
@@ -171,6 +171,7 @@ class FinetuneResponse(BaseModel):
171
171
  events: List[FinetuneEvent] | None = None
172
172
  inference_available: bool = False
173
173
  project_id: Optional[int] = None # TODO - fix this
174
+ completed_at: datetime | None = None
174
175
 
175
176
  # dataset token count
176
177
  # TODO
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: seekrai
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: Python client for SeekrAI
5
5
  Home-page: https://gitlab.cb.ntent.com/ml/seekr-py
6
6
  License: Apache-2.0
@@ -31,7 +31,7 @@ Project-URL: Homepage, https://www.seekr.com/
31
31
  Project-URL: Repository, https://gitlab.cb.ntent.com/ml/seekr-py
32
32
  Description-Content-Type: text/markdown
33
33
 
34
- The Seekr Python Library is the official Python client for SeekrFlow's API platform, providing a convenient way for interacting with the REST APIs and enables easy integrations with Python 3.8+ applications with easy to use synchronous and asynchronous clients.
34
+ The Seekr Python Library is the official Python client for SeekrFlow's API platform, providing a convenient way for interacting with the REST APIs and enables easy integrations with Python 3.9+ applications with easy to use synchronous and asynchronous clients.
35
35
 
36
36
  # Installation
37
37
 
@@ -1,6 +1,6 @@
1
1
  seekrai/__init__.py,sha256=HC6iy-IdwqecabH-6a80Lsy9qO2PBToAI0WqEErV41c,935
2
2
  seekrai/abstract/__init__.py,sha256=wNiOTW9TJpUgfCJCG-wAbhhWWH2PtoVpAuL3nxvQGps,56
3
- seekrai/abstract/api_requestor.py,sha256=Bij__JWVSmr4AYnrh6ugFYo-48_uYGQodcTDp38pnf4,18169
3
+ seekrai/abstract/api_requestor.py,sha256=tI43JdbUfNQHWjvRrenUM7C7Ea-zD-7yd2JNS-Lki04,18297
4
4
  seekrai/client.py,sha256=Yhejl-2a-Uoc8nWi-XxETZT4a4Ou_t_TRLcp0e9APIY,5376
5
5
  seekrai/constants.py,sha256=hoR2iF5te5Ydjt_lxIOSGID4vESIakG4F-3xAWdwxaU,1854
6
6
  seekrai/error.py,sha256=rAYL8qEd8INwYMMKvhS-HKeC3QkWL4Wq-zfazFU-zBg,4861
@@ -13,7 +13,7 @@ seekrai/resources/completions.py,sha256=w3La3zPMlN00y-b-tJwLgvZVH-xK_dKC6ktI5Ggn
13
13
  seekrai/resources/deployments.py,sha256=HmP7MuxAlLUoQl6z705_d1Y53MDvGgSQXhlgN3DKX2A,6078
14
14
  seekrai/resources/embeddings.py,sha256=3lohUrkdFqzSg8FgS7p4r87jwjE0NXU1PilWv278quk,2705
15
15
  seekrai/resources/files.py,sha256=16FfJFZJjZ10Q38AHvTwE-CtIPpKA0d4zyB52YN14e4,6876
16
- seekrai/resources/finetune.py,sha256=B3UpzdqH3tUjS9ZwMiEv6XUNULmYaMOubqJg2BY17Os,11417
16
+ seekrai/resources/finetune.py,sha256=RInur0DctkPzhJ1rWpXYEAFOfre_qwextKcjJlblkKM,11416
17
17
  seekrai/resources/images.py,sha256=E48lAe7YsZ2WXBHR_qz4SF7P4Y-U7t61m_bWNS91pM0,4802
18
18
  seekrai/resources/models.py,sha256=Pdd0S0gZdratWcHJPKNb7LkEdUGjr3xNR06W6GDiyxk,5000
19
19
  seekrai/resources/projects.py,sha256=AWJUeUDSzkbxBksHjJ4a3c83UR62TlMGHutm2NdV6Xk,3790
@@ -28,7 +28,7 @@ seekrai/types/deployments.py,sha256=n7_t7DEeBSC8cDJSjIfvWtcgUql1DaEn89zuGYN_RaI,
28
28
  seekrai/types/embeddings.py,sha256=OANoLNOs0aceS8NppVvvcNYQbF7-pAOAmcr30pw64OU,749
29
29
  seekrai/types/error.py,sha256=uTKISs9aRC4_6zwirtNkanxepN8KY-SqCq0kNbfZylQ,370
30
30
  seekrai/types/files.py,sha256=XmtiM6d9i3tnYS-Kii3QpxZJRqemJi2rvLJ32GsECXQ,2602
31
- seekrai/types/finetune.py,sha256=HBBBawJIbBKHVRjhQmtSfOitvIQaEh9AN4tf9tAtMDE,6048
31
+ seekrai/types/finetune.py,sha256=Izh7NfaW7pGzSN5GpWYSaZpkHV2TilE1CF62DrB8vE0,6089
32
32
  seekrai/types/images.py,sha256=Fusj8OhVYFsT8kz636lRGGivLbPXo_ZNgakKwmzJi3U,914
33
33
  seekrai/types/models.py,sha256=1ZfW9WwayApkISRizDntjkWhYNv-wkbrRVIfHn2QuC4,1242
34
34
  seekrai/types/projects.py,sha256=JFgpZdovia8Orcnhp6QkIEAXzyPCfKT_bUiwjxUaHHQ,670
@@ -38,8 +38,8 @@ seekrai/utils/api_helpers.py,sha256=0Y8BblNIr9h_R12zdmhkxgTlxgoRkbq84QNi4nNWGu8,
38
38
  seekrai/utils/files.py,sha256=B61Pwra49MVVWjPtdkx4hBtAuUe9UI63hdNus87Uq0o,7164
39
39
  seekrai/utils/tools.py,sha256=jgJTL-dOIouDbEJLdQpQfpXhqaz_poQYS52adyUtBjo,1781
40
40
  seekrai/version.py,sha256=q6iGQVFor8zXiPP5F-3vy9TndOxKv5JXbaNJ2kdOQws,125
41
- seekrai-0.3.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
42
- seekrai-0.3.0.dist-info/METADATA,sha256=zAQYJE7OfW-rYAdyMuL-n0G19IxvXP5KW1bex9zNnck,4748
43
- seekrai-0.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
44
- seekrai-0.3.0.dist-info/entry_points.txt,sha256=N49yOEGi1sK7Xr13F_rkkcOxQ88suyiMoOmRhUHTZ_U,48
45
- seekrai-0.3.0.dist-info/RECORD,,
41
+ seekrai-0.3.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
42
+ seekrai-0.3.2.dist-info/METADATA,sha256=M1kwCRaiObFvV3IpKSYII0kx3_FqGyPRZ8tU1ukz3e8,4748
43
+ seekrai-0.3.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
44
+ seekrai-0.3.2.dist-info/entry_points.txt,sha256=N49yOEGi1sK7Xr13F_rkkcOxQ88suyiMoOmRhUHTZ_U,48
45
+ seekrai-0.3.2.dist-info/RECORD,,