maitai-python 1.1.46__py3-none-any.whl → 1.2.0__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/_maitai.py +1 -1
- maitai/_maitai_async.py +1 -1
- maitai_common/version.py +1 -1
- maitai_gen/evaluation/__init__.py +13 -0
- maitai_gen/finetuning/__init__.py +13 -8
- {maitai_python-1.1.46.dist-info → maitai_python-1.2.0.dist-info}/METADATA +1 -2
- {maitai_python-1.1.46.dist-info → maitai_python-1.2.0.dist-info}/RECORD +9 -9
- {maitai_python-1.1.46.dist-info → maitai_python-1.2.0.dist-info}/WHEEL +0 -0
- {maitai_python-1.1.46.dist-info → maitai_python-1.2.0.dist-info}/top_level.txt +0 -0
maitai/_maitai.py
CHANGED
|
@@ -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
|
maitai/_maitai_async.py
CHANGED
|
@@ -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
|
maitai_common/version.py
CHANGED
|
@@ -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
|
|
@@ -5,14 +5,14 @@ maitai/_config_listener_thread.py,sha256=VaftjUXrP8oe6yg0TXUlIZW2vGw7bTk8p_95o4d
|
|
|
5
5
|
maitai/_context.py,sha256=WmCLGd7BK1ViImd7uDTsjly7ECcugioZhGjxXwETHfI,2401
|
|
6
6
|
maitai/_evaluator.py,sha256=qbwj--FCvNnRz-LTpuenMYf-2eGZRMrPqxepSerKWUo,10355
|
|
7
7
|
maitai/_inference.py,sha256=uINtF7KUFGfLDZ4wQ8rI45czfl7qYU4GcrGVv0nFaEc,13624
|
|
8
|
-
maitai/_maitai.py,sha256=
|
|
9
|
-
maitai/_maitai_async.py,sha256=
|
|
8
|
+
maitai/_maitai.py,sha256=4PBMIIXGiIbgq-JrOosVchT04nvMiKtre9-g-Vc7AAI,23406
|
|
9
|
+
maitai/_maitai_async.py,sha256=fJSvJ-603y0DfexQcjEFZlgQZpeomiPmkhz3YpE_O04,23452
|
|
10
10
|
maitai/_maitai_client.py,sha256=NrICbHWhfx-u6pdXSUCjKRlPYmJO9nWb4hgnr3vf1y8,1981
|
|
11
11
|
maitai/_types.py,sha256=JEF0kGlnAdT-GDF927FfpH85FTz2dmaFp1FJg04WOos,6273
|
|
12
12
|
maitai/_utils.py,sha256=3JN5MClGZNkcmn-hWgi8fNV2n-Ytlek37H3S6TEHzuk,11276
|
|
13
13
|
maitai/tools/__init__.py,sha256=TxJ-g4A0eIzoIMD60ctIPVppCWcdcuZWms3hPGrqkSs,4043
|
|
14
14
|
maitai_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
maitai_common/version.py,sha256=
|
|
15
|
+
maitai_common/version.py,sha256=nuO2WYuJLQdMoMP32uSaVQYWE15pxICtx4Cx1NZVa_k,64
|
|
16
16
|
maitai_common/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
maitai_common/config/config_service.py,sha256=U8hU0F9juZtrZwIayOM_OBShxynUS8gu5K0F40KvcA0,940
|
|
18
18
|
maitai_common/processes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -27,9 +27,9 @@ maitai_gen/chat/__init__.py,sha256=ZHz3G8NLoKVyFkmsh-_wyCZ4eTJqSB6Pg6lw2jB693c,2
|
|
|
27
27
|
maitai_gen/company/__init__.py,sha256=Jj03m8QlVsGLr0VQA-T5yxjbC1R3cx0gthUwgtbtGuc,739
|
|
28
28
|
maitai_gen/config/__init__.py,sha256=vNW0hWIuYwDZNKwnPwSIYkwHmPIe5HA1IPfisQQ_Img,2008
|
|
29
29
|
maitai_gen/embedding/__init__.py,sha256=py5vAEdXFatL7daub1YSnruIRV-im0heWSa5hjaSljM,941
|
|
30
|
-
maitai_gen/evaluation/__init__.py,sha256=
|
|
30
|
+
maitai_gen/evaluation/__init__.py,sha256=CjB_Vnokmfawg-wte9YLB-e4OR8A6QI1B1ftZc7Pe_A,1777
|
|
31
31
|
maitai_gen/event/__init__.py,sha256=puOhfH-KQu_fL-yPJPjceDhwy3VbzP0oTtQs-RHeTE4,670
|
|
32
|
-
maitai_gen/finetuning/__init__.py,sha256=
|
|
32
|
+
maitai_gen/finetuning/__init__.py,sha256=e0kdoBdKjXXgufokcEr5WOjEFuqRE1JUCj3FJ0SroHA,3301
|
|
33
33
|
maitai_gen/inference/__init__.py,sha256=KUWiTng5KeibART4NZ91JuN6fR4u7hmxcx8BjhCde78,741
|
|
34
34
|
maitai_gen/key/__init__.py,sha256=lDgA5vvqO0J_XmE8IxAWk640t0karVmi_6ThiMowttc,1338
|
|
35
35
|
maitai_gen/metric/__init__.py,sha256=RX1sF74PB2L2lTD7EYfim5BSRmvGVd63L__IgJhZDh0,615
|
|
@@ -38,7 +38,7 @@ maitai_gen/rates/__init__.py,sha256=Aho7HzMKRfjQz10tMJCoRVttq_cGlYh2DxxpSyTQAzU,
|
|
|
38
38
|
maitai_gen/sandbox/__init__.py,sha256=IZ4hf76V1aZrYk5S-4p7z38e-op_s341utVG2domE_g,1549
|
|
39
39
|
maitai_gen/sentinel/__init__.py,sha256=3yR28usTBIAC-M_uxEUFgqXo2PWylEKEPYmWX_dp7Cs,2513
|
|
40
40
|
maitai_gen/session/__init__.py,sha256=kCJweCFagUqGkzktucaWLti9HSLaO5AML8Jewl89yM0,1242
|
|
41
|
-
maitai_python-1.
|
|
42
|
-
maitai_python-1.
|
|
43
|
-
maitai_python-1.
|
|
44
|
-
maitai_python-1.
|
|
41
|
+
maitai_python-1.2.0.dist-info/METADATA,sha256=oChy8C2ysYqmboOQNaXsDbbqACnE3Pyl0ka5X_fqlJs,1494
|
|
42
|
+
maitai_python-1.2.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
43
|
+
maitai_python-1.2.0.dist-info/top_level.txt,sha256=-5U1krxnwlqB-AY7nEe29ZcNvwByNc-SnBe-mph-QjI,32
|
|
44
|
+
maitai_python-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|