seekrai 0.3.0__tar.gz → 0.3.2__tar.gz

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 (44) hide show
  1. {seekrai-0.3.0 → seekrai-0.3.2}/PKG-INFO +2 -2
  2. {seekrai-0.3.0 → seekrai-0.3.2}/README.md +1 -1
  3. {seekrai-0.3.0 → seekrai-0.3.2}/pyproject.toml +1 -1
  4. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/abstract/api_requestor.py +3 -1
  5. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/finetune.py +1 -1
  6. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/finetune.py +1 -0
  7. {seekrai-0.3.0 → seekrai-0.3.2}/LICENSE +0 -0
  8. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/__init__.py +0 -0
  9. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/abstract/__init__.py +0 -0
  10. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/client.py +0 -0
  11. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/constants.py +0 -0
  12. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/error.py +0 -0
  13. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/filemanager.py +0 -0
  14. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/__init__.py +0 -0
  15. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/alignment.py +0 -0
  16. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/chat/__init__.py +0 -0
  17. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/chat/completions.py +0 -0
  18. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/completions.py +0 -0
  19. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/deployments.py +0 -0
  20. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/embeddings.py +0 -0
  21. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/files.py +0 -0
  22. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/images.py +0 -0
  23. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/models.py +0 -0
  24. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/resources/projects.py +0 -0
  25. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/seekrflow_response.py +0 -0
  26. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/__init__.py +0 -0
  27. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/abstract.py +0 -0
  28. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/alignment.py +0 -0
  29. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/chat_completions.py +0 -0
  30. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/common.py +0 -0
  31. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/completions.py +0 -0
  32. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/deployments.py +0 -0
  33. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/embeddings.py +0 -0
  34. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/error.py +0 -0
  35. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/files.py +0 -0
  36. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/images.py +0 -0
  37. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/models.py +0 -0
  38. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/types/projects.py +0 -0
  39. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/utils/__init__.py +0 -0
  40. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/utils/_log.py +0 -0
  41. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/utils/api_helpers.py +0 -0
  42. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/utils/files.py +0 -0
  43. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/utils/tools.py +0 -0
  44. {seekrai-0.3.0 → seekrai-0.3.2}/src/seekrai/version.py +0 -0
@@ -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,4 +1,4 @@
1
- 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.
1
+ 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.
2
2
 
3
3
  # Installation
4
4
 
@@ -14,7 +14,7 @@ build-backend = "poetry.core.masonry.api"
14
14
 
15
15
  [tool.poetry]
16
16
  name = "seekrai"
17
- version = "0.3.0"
17
+ version = "0.3.2"
18
18
  authors = [
19
19
  "SeekrFlow <support@seekr.com>"
20
20
  ]
@@ -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,
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes