maitai-python 1.2.19__py3-none-any.whl → 1.2.20__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.
- maitai/_context.py +2 -2
- maitai/_evaluator.py +3 -3
- maitai/_inference.py +6 -6
- maitai/_maitai_client.py +4 -4
- maitai/_utils.py +1 -1
- maitai_common/version.py +1 -1
- {maitai_python-1.2.19.dist-info → maitai_python-1.2.20.dist-info}/METADATA +1 -1
- {maitai_python-1.2.19.dist-info → maitai_python-1.2.20.dist-info}/RECORD +10 -10
- {maitai_python-1.2.19.dist-info → maitai_python-1.2.20.dist-info}/WHEEL +1 -1
- {maitai_python-1.2.19.dist-info → maitai_python-1.2.20.dist-info}/top_level.txt +0 -0
maitai/_context.py
CHANGED
|
@@ -44,7 +44,7 @@ class ContextManager(MaitaiClient):
|
|
|
44
44
|
headers = {
|
|
45
45
|
"Content-Type": "application/json",
|
|
46
46
|
"x-api-key": config.api_key,
|
|
47
|
-
"
|
|
47
|
+
"User-Agent": version,
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
client = self.get_client()
|
|
@@ -65,7 +65,7 @@ class ContextManager(MaitaiClient):
|
|
|
65
65
|
url = f"{host}/context/application/file"
|
|
66
66
|
headers = {
|
|
67
67
|
"x-api-key": config.api_key,
|
|
68
|
-
"
|
|
68
|
+
"User-Agent": version,
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
client = self.get_client()
|
maitai/_evaluator.py
CHANGED
|
@@ -226,7 +226,7 @@ class Evaluator(MaitaiClient):
|
|
|
226
226
|
headers = {
|
|
227
227
|
"Content-Type": "application/json",
|
|
228
228
|
"x-api-key": config.api_key,
|
|
229
|
-
"
|
|
229
|
+
"User-Agent": version,
|
|
230
230
|
}
|
|
231
231
|
try:
|
|
232
232
|
client = self.get_client()
|
|
@@ -260,7 +260,7 @@ class Evaluator(MaitaiClient):
|
|
|
260
260
|
headers = {
|
|
261
261
|
"Content-Type": "application/json",
|
|
262
262
|
"x-api-key": config.api_key,
|
|
263
|
-
"
|
|
263
|
+
"User-Agent": version,
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
try:
|
|
@@ -297,7 +297,7 @@ class Evaluator(MaitaiClient):
|
|
|
297
297
|
headers = {
|
|
298
298
|
"Content-Type": "application/json",
|
|
299
299
|
"x-api-key": config.api_key,
|
|
300
|
-
"
|
|
300
|
+
"User-Agent": version,
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
client = self.get_client()
|
maitai/_inference.py
CHANGED
|
@@ -83,7 +83,7 @@ class Inference(MaitaiClient):
|
|
|
83
83
|
headers = {
|
|
84
84
|
"Content-Type": "application/json",
|
|
85
85
|
"x-api-key": config.api_key,
|
|
86
|
-
"
|
|
86
|
+
"User-Agent": version,
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
client = self.get_client()
|
|
@@ -154,7 +154,7 @@ class Inference(MaitaiClient):
|
|
|
154
154
|
headers = {
|
|
155
155
|
"Content-Type": "application/json",
|
|
156
156
|
"x-api-key": config.api_key,
|
|
157
|
-
"
|
|
157
|
+
"User-Agent": version,
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
try:
|
|
@@ -281,7 +281,7 @@ class Inference(MaitaiClient):
|
|
|
281
281
|
headers = {
|
|
282
282
|
"Content-Type": "application/json",
|
|
283
283
|
"x-api-key": config.api_key,
|
|
284
|
-
"
|
|
284
|
+
"User-Agent": version,
|
|
285
285
|
}
|
|
286
286
|
try:
|
|
287
287
|
client = self.get_client()
|
|
@@ -295,7 +295,7 @@ class Inference(MaitaiClient):
|
|
|
295
295
|
headers = {
|
|
296
296
|
"Content-Type": "application/json",
|
|
297
297
|
"x-api-key": config.api_key,
|
|
298
|
-
"
|
|
298
|
+
"User-Agent": version,
|
|
299
299
|
}
|
|
300
300
|
try:
|
|
301
301
|
client = await self.get_async_client()
|
|
@@ -316,7 +316,7 @@ class Inference(MaitaiClient):
|
|
|
316
316
|
headers = {
|
|
317
317
|
"Content-Type": "application/json",
|
|
318
318
|
"x-api-key": config.api_key,
|
|
319
|
-
"
|
|
319
|
+
"User-Agent": version,
|
|
320
320
|
}
|
|
321
321
|
try:
|
|
322
322
|
client = self.get_client()
|
|
@@ -330,7 +330,7 @@ class Inference(MaitaiClient):
|
|
|
330
330
|
headers = {
|
|
331
331
|
"Content-Type": "application/json",
|
|
332
332
|
"x-api-key": config.api_key,
|
|
333
|
-
"
|
|
333
|
+
"User-Agent": version,
|
|
334
334
|
}
|
|
335
335
|
try:
|
|
336
336
|
client = await self.get_async_client()
|
maitai/_maitai_client.py
CHANGED
|
@@ -79,7 +79,7 @@ def _determine_maitai_host():
|
|
|
79
79
|
if azure_region == "westus2":
|
|
80
80
|
return "https://api.azure.westus2.trymaitai.ai"
|
|
81
81
|
|
|
82
|
-
return "https://api.trymaitai.ai"
|
|
82
|
+
return "https://api.global.trymaitai.ai"
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
class MaitaiClient:
|
|
@@ -143,7 +143,7 @@ class MaitaiClient:
|
|
|
143
143
|
headers = {
|
|
144
144
|
"Content-Type": "application/json",
|
|
145
145
|
"x-api-key": api_key,
|
|
146
|
-
"
|
|
146
|
+
"User-Agent": version,
|
|
147
147
|
}
|
|
148
148
|
labels = {
|
|
149
149
|
"cause": error,
|
|
@@ -162,7 +162,7 @@ class MaitaiClient:
|
|
|
162
162
|
headers = {
|
|
163
163
|
"Content-Type": "application/json",
|
|
164
164
|
"x-api-key": api_key,
|
|
165
|
-
"
|
|
165
|
+
"User-Agent": version,
|
|
166
166
|
}
|
|
167
167
|
labels = {
|
|
168
168
|
"cause": error,
|
|
@@ -180,7 +180,7 @@ class MaitaiClient:
|
|
|
180
180
|
headers = {
|
|
181
181
|
"Content-Type": "application/json",
|
|
182
182
|
"x-api-key": api_key,
|
|
183
|
-
"
|
|
183
|
+
"User-Agent": version,
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
response = httpx.get(url, headers=headers, timeout=15)
|
maitai/_utils.py
CHANGED
|
@@ -28,7 +28,7 @@ from maitai._types import ToolFunction
|
|
|
28
28
|
from maitai.tools import Tools
|
|
29
29
|
from maitai_common.version import version
|
|
30
30
|
|
|
31
|
-
__version__ = f"{
|
|
31
|
+
__version__ = f"Maitai/Python{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro} {version}"
|
|
32
32
|
|
|
33
33
|
CallableT = TypeVar("CallableT", bound=Callable[..., Any])
|
|
34
34
|
|
maitai_common/version.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
maitai/__init__.py,sha256=UocvQ1455PnA27V1S6vk3yc_BysjTgLGbwfdMF2eL0A,336
|
|
2
2
|
maitai/_config.py,sha256=SKFFwHd7CFViD9VaoJ3cLnRMP5TH436KJQP75cP40Tk,7030
|
|
3
3
|
maitai/_config_listener.py,sha256=FhjV84Pugy5h0mlbCSaanKZ4aVpINaEKzMNQmdZhRj4,5140
|
|
4
|
-
maitai/_context.py,sha256=
|
|
5
|
-
maitai/_evaluator.py,sha256
|
|
6
|
-
maitai/_inference.py,sha256=
|
|
4
|
+
maitai/_context.py,sha256=qyxCww-02qvLpJ7dRG_eOkZI2UaCOgLtqkASlb7QbZU,2470
|
|
5
|
+
maitai/_evaluator.py,sha256=-CTYzKj5dvLm_-JvanA1-I_yaoXUXXIwybi7DWP6YQU,11689
|
|
6
|
+
maitai/_inference.py,sha256=vALA8uONItl7YEN7CktknbbE8GFdqjilYQdH5zJXgIs,12585
|
|
7
7
|
maitai/_maitai.py,sha256=GDukeSBF18Zz2z7xbDDIcNLktQZn-ge8M_guXm40z9M,28493
|
|
8
8
|
maitai/_maitai_async.py,sha256=FocvUEH95iekA0SBFnUgYEJl5O3p7o1OgfBelC4BP00,28594
|
|
9
|
-
maitai/_maitai_client.py,sha256=
|
|
9
|
+
maitai/_maitai_client.py,sha256=FPZnYgxAcn3rjGHw_uaSRsFMBogQxJk0NGQval849Hw,5796
|
|
10
10
|
maitai/_pydantic.py,sha256=8clflOhR7-6AeLFBzmsYO0aaQSAkp8KMuxsrYwPthaA,5683
|
|
11
11
|
maitai/_types.py,sha256=UL3CMIZ0bc1I6vyGcGxCusxVl-OHsTGUFY8oIBckyEs,5875
|
|
12
|
-
maitai/_utils.py,sha256=
|
|
12
|
+
maitai/_utils.py,sha256=v6sJZkSh1hUYLXugzGgyGGpJ2NSR4UFhljRdIkuKJjo,10969
|
|
13
13
|
maitai/exceptions.py,sha256=n0jwH3dhq8ewdgkCHTaaMd1GeB3EL_zulytnwqD3XUg,500
|
|
14
14
|
maitai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
maitai/models/application.py,sha256=nfddjI5gt56MkSZgvG-EZmsO3JFxpAA5mzPwVoGig10,1656
|
|
@@ -22,10 +22,10 @@ maitai/models/metric.py,sha256=iL1FqaJ-3ii5pgY4cGZKp0nuQVG1XnBggopazQhGN_E,451
|
|
|
22
22
|
maitai/models/sentinel.py,sha256=D1qPhV6GQDRq-JkDtm_lwSXDWFQ1kUjuCw5H6fUvsFg,1802
|
|
23
23
|
maitai/tools/__init__.py,sha256=Fo7tOLJNFbFtVN9LI8fpFUPk95lcq97Pp1TP5-2NU3s,4086
|
|
24
24
|
maitai_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
maitai_common/version.py,sha256=
|
|
25
|
+
maitai_common/version.py,sha256=Tj6nmMw9DC8bUIBp2q4KPTJqwlqEe1UMn8ySkllHKnA,65
|
|
26
26
|
maitai_common/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
maitai_common/config/config_service.py,sha256=CRUz-LYyGxCaDqqkqaJ6CyhpTKr11NKux104oU__NBg,1110
|
|
28
|
-
maitai_python-1.2.
|
|
29
|
-
maitai_python-1.2.
|
|
30
|
-
maitai_python-1.2.
|
|
31
|
-
maitai_python-1.2.
|
|
28
|
+
maitai_python-1.2.20.dist-info/METADATA,sha256=gmwkxUyA_AxGBLNyQcBUs2XzC4wZnIdIaM0JW-8-OTA,1662
|
|
29
|
+
maitai_python-1.2.20.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
30
|
+
maitai_python-1.2.20.dist-info/top_level.txt,sha256=3uBDd_HUkDZhdPkUjbHJpoKMT3YoYszkUeOLIxgjzUo,21
|
|
31
|
+
maitai_python-1.2.20.dist-info/RECORD,,
|
|
File without changes
|