most-client 1.0.38__py3-none-any.whl → 1.0.40__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.
most/async_api.py CHANGED
@@ -112,8 +112,6 @@ class AsyncMostClient(object):
112
112
 
113
113
  def with_model(self, model_id):
114
114
  client = self.clone()
115
- if not is_valid_id(self.model_id):
116
- raise RuntimeError("Please choose valid model to apply. [try list_models()]")
117
115
  client.model_id = model_id
118
116
  client.score_modifier = None
119
117
  return client
most/search_types.py CHANGED
@@ -1,17 +1,15 @@
1
1
  from dataclasses import dataclass, field
2
2
  from typing import List, Optional
3
-
4
- from bson import ObjectId
5
3
  from dataclasses_json import DataClassJsonMixin, dataclass_json
6
4
 
7
5
 
8
6
  @dataclass_json
9
7
  @dataclass
10
8
  class IDCondition(DataClassJsonMixin):
11
- equal: Optional[ObjectId] = None
12
- in_set: Optional[List[ObjectId]] = None
13
- greater_than: Optional[ObjectId] = None
14
- less_than: Optional[ObjectId] = None
9
+ equal: Optional[str] = None
10
+ in_set: Optional[List[str]] = None
11
+ greater_than: Optional[str] = None
12
+ less_than: Optional[str] = None
15
13
 
16
14
 
17
15
  @dataclass_json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: most-client
3
- Version: 1.0.38
3
+ Version: 1.0.40
4
4
  Summary: Most AI API for https://the-most.ai
5
5
  Home-page: https://github.com/the-most-ai/most-client
6
6
  Author: George Kasparyants
@@ -27,7 +27,6 @@ Requires-Dist: tox
27
27
  Requires-Dist: twine
28
28
  Requires-Dist: httpx
29
29
  Requires-Dist: pydub
30
- Requires-Dist: bson
31
30
  Dynamic: author
32
31
  Dynamic: author-email
33
32
  Dynamic: classifier
@@ -1,16 +1,16 @@
1
1
  most/__init__.py,sha256=yoPKMxjZYAzrVqZ7l9rN0Skh0HPuttPX7ub0wlZMby4,351
2
2
  most/_constrants.py,sha256=SlHKcBoXwe_sPzk8tdbb7lqhQz-Bfo__FhSoeFWodZE,217
3
3
  most/api.py,sha256=HmJSAwLVuy7uaeVAM3y1nd-F-UDZ2kOVww_i2EY0Sjs,19145
4
- most/async_api.py,sha256=Xyo1sGN4QstqIZh_4YDT6FStaXR0HRy6fbtbqc7uqK8,20562
4
+ most/async_api.py,sha256=CTUpju0byI_HdE_zw3OPrNfRW-TXpTtoCK0tt7iVkXY,20429
5
5
  most/async_searcher.py,sha256=C0zViW20K7OhKO1BzBZktTbMJYBBvor3uK6LAHZTxz0,2238
6
6
  most/async_trainer_api.py,sha256=99rED8RjnOn8VezeEgrTgoVfQrO7DdmOE2Jajumno2g,1052
7
7
  most/score_calculation.py,sha256=vLtGqXrR43xZhGjrH5dpQZfWX1q3s74LvTaHn-SKBAg,3254
8
- most/search_types.py,sha256=63kBZvvkqlN2UOHXcxTraI9vEq-ANoqXmBnHi_QABDE,6729
8
+ most/search_types.py,sha256=OAtLDdpAPqH-ZYe0KxBuDbB-mUHp8eQM6-ZXUNvvBWU,6682
9
9
  most/searcher.py,sha256=9UdiSlScsE6EPc6RpK8xkRLeB5gHNxgPQpXTJ17i3lQ,2135
10
10
  most/trainer_api.py,sha256=ZwOv4mhROfY97n6i7IY_ZpafsuNRazOqMBAf2dh708k,992
11
11
  most/types.py,sha256=AU74VqYilM9DXfBwptliRbhV5urLAf4BygdIY3wlAN8,4309
12
- most_client-1.0.38.dist-info/METADATA,sha256=17PN1v9-yRjWGMSVCEIlIKdkK7z6QQlFIaP9ZtvtQFU,1047
13
- most_client-1.0.38.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
14
- most_client-1.0.38.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
15
- most_client-1.0.38.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
16
- most_client-1.0.38.dist-info/RECORD,,
12
+ most_client-1.0.40.dist-info/METADATA,sha256=O_CE5dtc5zHPPrpysUsMHqTu3Axs17p5l98YWm13mWM,1027
13
+ most_client-1.0.40.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
14
+ most_client-1.0.40.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
15
+ most_client-1.0.40.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
16
+ most_client-1.0.40.dist-info/RECORD,,