maitai-python 1.1.45__tar.gz → 1.2.0__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.
- {maitai_python-1.1.45 → maitai_python-1.2.0}/PKG-INFO +1 -2
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_maitai.py +3 -1
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_maitai_async.py +3 -1
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/version.py +1 -1
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/evaluation/__init__.py +13 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/finetuning/__init__.py +13 -8
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_python.egg-info/PKG-INFO +1 -2
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_python.egg-info/requires.txt +0 -1
- {maitai_python-1.1.45 → maitai_python-1.2.0}/setup.py +0 -1
- {maitai_python-1.1.45 → maitai_python-1.2.0}/README.md +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_azure.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_config.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_config_listener_thread.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_context.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_evaluator.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_inference.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_maitai_client.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_types.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/_utils.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai/tools/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/config/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/config/config_service.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/processes/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/processes/io_thread.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/processes/websocket_listener_thread.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/application/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/backtest/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/billing/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/chat/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/company/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/config/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/embedding/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/event/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/inference/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/key/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/metric/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/model.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/notification/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/rates/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/sandbox/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/sentinel/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_gen/session/__init__.py +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_python.egg-info/SOURCES.txt +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_python.egg-info/dependency_links.txt +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_python.egg-info/top_level.txt +0 -0
- {maitai_python-1.1.45 → maitai_python-1.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maitai-python
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Maitai SDK for Python
|
|
5
5
|
Home-page: https://docs.trymaitai.ai
|
|
6
6
|
Author: Maitai
|
|
@@ -11,7 +11,6 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
Requires-Dist: requests
|
|
13
13
|
Requires-Dist: openai>=1.34.0
|
|
14
|
-
Requires-Dist: betterproto
|
|
15
14
|
Requires-Dist: httpx
|
|
16
15
|
Requires-Dist: aiohttp
|
|
17
16
|
Requires-Dist: betterproto==2.0.0b7
|
|
@@ -256,7 +256,7 @@ class Completions:
|
|
|
256
256
|
max_tokens = maitai_config.max_tokens
|
|
257
257
|
if max_completion_tokens and max_completion_tokens != openai.NOT_GIVEN:
|
|
258
258
|
max_tokens = max_completion_tokens
|
|
259
|
-
if n == openai.NOT_GIVEN:
|
|
259
|
+
if n == openai.NOT_GIVEN and maitai_config.n:
|
|
260
260
|
n = maitai_config.n
|
|
261
261
|
if frequency_penalty == openai.NOT_GIVEN:
|
|
262
262
|
frequency_penalty = maitai_config.frequency_penalty
|
|
@@ -360,6 +360,8 @@ class Completions:
|
|
|
360
360
|
model = fallback_model
|
|
361
361
|
if "gpt" not in model:
|
|
362
362
|
raise e
|
|
363
|
+
if safe_mode:
|
|
364
|
+
raise e
|
|
363
365
|
print("Maitai issue, retrying on client side")
|
|
364
366
|
server_side_inference = False
|
|
365
367
|
if not server_side_inference:
|
|
@@ -254,7 +254,7 @@ class AsyncCompletions:
|
|
|
254
254
|
max_tokens = maitai_config.max_tokens
|
|
255
255
|
if max_completion_tokens and max_completion_tokens != openai.NOT_GIVEN:
|
|
256
256
|
max_tokens = max_completion_tokens
|
|
257
|
-
if n == openai.NOT_GIVEN:
|
|
257
|
+
if n == openai.NOT_GIVEN and maitai_config.n:
|
|
258
258
|
n = maitai_config.n
|
|
259
259
|
if frequency_penalty == openai.NOT_GIVEN:
|
|
260
260
|
frequency_penalty = maitai_config.frequency_penalty
|
|
@@ -357,6 +357,8 @@ class AsyncCompletions:
|
|
|
357
357
|
model = fallback_model
|
|
358
358
|
if "gpt" not in model:
|
|
359
359
|
raise e
|
|
360
|
+
if safe_mode:
|
|
361
|
+
raise e
|
|
360
362
|
print("Maitai issue, retrying on client side")
|
|
361
363
|
server_side_inference = False
|
|
362
364
|
if not server_side_inference:
|
|
@@ -36,3 +36,16 @@ class EvaluationRun(betterproto.Message):
|
|
|
36
36
|
)
|
|
37
37
|
request_count: int = betterproto.int64_field(13)
|
|
38
38
|
requests: List["_chat__.EvaluateRequest"] = betterproto.message_field(14)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@dataclass(eq=False, repr=False)
|
|
42
|
+
class TestSet(betterproto.Message):
|
|
43
|
+
id: int = betterproto.int64_field(1)
|
|
44
|
+
name: str = betterproto.string_field(2)
|
|
45
|
+
company_id: int = betterproto.int64_field(3)
|
|
46
|
+
application_id: int = betterproto.int64_field(4)
|
|
47
|
+
application_action_id: int = betterproto.int64_field(5)
|
|
48
|
+
meta: Dict[str, str] = betterproto.map_field(
|
|
49
|
+
6, betterproto.TYPE_STRING, betterproto.TYPE_STRING
|
|
50
|
+
)
|
|
51
|
+
date_created: int = betterproto.int64_field(7)
|
|
@@ -67,15 +67,20 @@ class ExportRequest(betterproto.Message):
|
|
|
67
67
|
fourbit: bool = betterproto.bool_field(8)
|
|
68
68
|
run_name: Optional[str] = betterproto.string_field(9, optional=True)
|
|
69
69
|
base_model: str = betterproto.string_field(10)
|
|
70
|
+
display_name: str = betterproto.string_field(11)
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
@dataclass(eq=False, repr=False)
|
|
73
74
|
class FinetuneRequest(betterproto.Message):
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
company_id: str = betterproto.string_field(1)
|
|
76
|
+
application_id: str = betterproto.string_field(2)
|
|
77
|
+
intent_id: str = betterproto.string_field(3)
|
|
78
|
+
input_file: str = betterproto.string_field(4)
|
|
79
|
+
run_name: str = betterproto.string_field(5)
|
|
80
|
+
conversation_mode: bool = betterproto.bool_field(6)
|
|
81
|
+
fourbit: bool = betterproto.bool_field(7)
|
|
82
|
+
prompt: Optional[str] = betterproto.string_field(8, optional=True)
|
|
83
|
+
max_steps: Optional[int] = betterproto.int32_field(9, optional=True)
|
|
84
|
+
run_id: int = betterproto.int64_field(10)
|
|
85
|
+
base_model: str = betterproto.string_field(11)
|
|
86
|
+
display_name: str = betterproto.string_field(12)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maitai-python
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Maitai SDK for Python
|
|
5
5
|
Home-page: https://docs.trymaitai.ai
|
|
6
6
|
Author: Maitai
|
|
@@ -11,7 +11,6 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
Requires-Dist: requests
|
|
13
13
|
Requires-Dist: openai>=1.34.0
|
|
14
|
-
Requires-Dist: betterproto
|
|
15
14
|
Requires-Dist: httpx
|
|
16
15
|
Requires-Dist: aiohttp
|
|
17
16
|
Requires-Dist: betterproto==2.0.0b7
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maitai_python-1.1.45 → maitai_python-1.2.0}/maitai_common/processes/websocket_listener_thread.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|