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.
- codemie_sdk/services/assistant.py +1 -1
- codemie_sdk/services/datasource.py +5 -1
- {codemie_sdk_python-0.1.91.dist-info → codemie_sdk_python-0.1.93.dist-info}/METADATA +1 -1
- {codemie_sdk_python-0.1.91.dist-info → codemie_sdk_python-0.1.93.dist-info}/RECORD +5 -5
- {codemie_sdk_python-0.1.91.dist-info → codemie_sdk_python-0.1.93.dist-info}/WHEEL +0 -0
|
@@ -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 =
|
|
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:
|
|
@@ -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=
|
|
18
|
-
codemie_sdk/services/datasource.py,sha256=
|
|
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.
|
|
29
|
-
codemie_sdk_python-0.1.
|
|
30
|
-
codemie_sdk_python-0.1.
|
|
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,,
|
|
File without changes
|