codemie-sdk-python 0.1.91__py3-none-any.whl → 0.1.93__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.

Potentially problematic release.


This version of codemie-sdk-python might be problematic. Click here for more details.

@@ -211,7 +211,7 @@ class AssistantService:
211
211
  (
212
212
  file_path.name,
213
213
  file,
214
- mimetypes.guess_type(file_path.name)
214
+ mimetypes.guess_type(file_path.name)[0]
215
215
  or "application/octet-stream",
216
216
  ),
217
217
  ),
@@ -1,6 +1,7 @@
1
1
  """DataSource service implementation."""
2
2
 
3
3
  import json
4
+ import mimetypes
4
5
  from typing import Literal, List, Union, Tuple, Optional, Dict, Any
5
6
  from pathlib import Path
6
7
 
@@ -82,7 +83,10 @@ class DatasourceService:
82
83
  content = f.read()
83
84
 
84
85
  # Basic MIME type detection
85
- mime_type = self._api.detect_mime_type(file_path)
86
+ mime_type = (
87
+ mimetypes.guess_type(file_path.name)[0]
88
+ or "application/octet-stream"
89
+ )
86
90
  file_uploads.append(("files", (file_path.name, content, mime_type)))
87
91
 
88
92
  elif isinstance(file_item, tuple) and len(file_item) == 3:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.91
3
+ Version: 0.1.93
4
4
  Summary: CodeMie SDK for Python
5
5
  Author: Vadym Vlasenko
6
6
  Author-email: vadym_vlasenko@epam.com
@@ -14,8 +14,8 @@ codemie_sdk/models/task.py,sha256=J4ZFRY3s8qBGrqB5NLQF0rMbInLh4s7OEZ0ZfmnW0Ho,14
14
14
  codemie_sdk/models/user.py,sha256=Q0rjimZh-IbeaPfq6b6fk6ZaCtwLqWHEIlU863suCS4,1777
15
15
  codemie_sdk/models/workflow.py,sha256=pr8ap_70pzv3Ugvdo4RivNOFyoQVr1E5fze2O87L4gM,2431
16
16
  codemie_sdk/models/workflow_state.py,sha256=CMYFQZ7sy4QxmnWmc83TFfqP7TG_3rW5MdH5fxsS9kY,1251
17
- codemie_sdk/services/assistant.py,sha256=hd5_Bt6Cuf8_hOcnYIi6-S1z7PuCE3zXwf0U9UAMPlY,7885
18
- codemie_sdk/services/datasource.py,sha256=SCykr3t9QEaZVhjNgGT_PU8Ngg0MAdu2BB-6xrHz8Dg,7296
17
+ codemie_sdk/services/assistant.py,sha256=BsTR_uoPoZtta6icfw2M0Ea6w2VIhYndDUVqsHJuZJo,7888
18
+ codemie_sdk/services/datasource.py,sha256=d8LImpireGOnXKvj4h8iafq_ZQMn177_GGLLiE5g7wU,7405
19
19
  codemie_sdk/services/integration.py,sha256=SdwFwR3hCPyJYilzzlkpKPLNbO89nfqmIXXoT7bDEBI,5410
20
20
  codemie_sdk/services/llm.py,sha256=0-e4_7RvLHs2giCyoQ5U4KDTh6p5VXgPKNxnDP9ZDFU,1100
21
21
  codemie_sdk/services/task.py,sha256=3e9t8_LMkR4xfeMBwMCo7ZF87PxPS-ZbzDg85ilda2M,1031
@@ -25,6 +25,6 @@ codemie_sdk/services/workflow_execution.py,sha256=aGoT3rdTmh5-doAsrmBBjLEuOfvL5a
25
25
  codemie_sdk/services/workflow_execution_state.py,sha256=tXoaa8yT09xgYEUNiHhVULe76TwGwVgZupMIUyyLxdo,2070
26
26
  codemie_sdk/utils/__init__.py,sha256=BXAJJfAzO89-kMYvWWo9wSNhSbGgF3vB1In9sePFhMM,109
27
27
  codemie_sdk/utils/http.py,sha256=FWU56W_-vBGbHfX1EC1zsoRjDoNCyNK2HCdNb4IkQVc,9233
28
- codemie_sdk_python-0.1.91.dist-info/METADATA,sha256=Me3ufZvfABCChh7gSdJw2qsi6Dr3rA8QsMnds6VAp1Y,23620
29
- codemie_sdk_python-0.1.91.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- codemie_sdk_python-0.1.91.dist-info/RECORD,,
28
+ codemie_sdk_python-0.1.93.dist-info/METADATA,sha256=0fpgPx3JfUa1R9f6lxJ09GW9Q5aOgcsQBTQ9cStdmRA,23620
29
+ codemie_sdk_python-0.1.93.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ codemie_sdk_python-0.1.93.dist-info/RECORD,,