mmar-mapi 1.0.3__py3-none-any.whl → 1.0.4__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 mmar-mapi might be problematic. Click here for more details.

mmar_mapi/models/chat.py CHANGED
@@ -229,11 +229,13 @@ def make_content(
229
229
  resource_id: str | None = None,
230
230
  command: dict | None = None,
231
231
  widget: Widget | None = None,
232
+ content: Content | None = None
232
233
  ) -> Content:
233
234
  resource_id = (resource_id or None) and {"type": "resource_id", "resource_id": resource_id}
234
235
  command = (command or None) and {"type": "command", "command": command}
235
236
 
236
- content = list(filter(None, [text, resource_id, command, widget]))
237
+ content = content if isinstance(content, list) else [content] if content else []
238
+ content += list(filter(None, [text, resource_id, command, widget]))
237
239
  if len(content) == 0:
238
240
  content = ""
239
241
  elif len(content) == 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mmar-mapi
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Common pure/IO utilities for multi-modal architectures team
5
5
  Keywords:
6
6
  Author: Eugene Tagin
@@ -5,7 +5,7 @@ mmar_mapi/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
5
5
  mmar_mapi/models/base.py,sha256=mKtXV2x51XVj7W-et9tjGcPMDUUUMelW-BywMgFc2p0,411
6
6
  mmar_mapi/models/base_config_models/__init__.py,sha256=KjS_bSCka8BOMsigwcIML-e6eNB2ouMU6gxlhRmzeuY,44
7
7
  mmar_mapi/models/base_config_models/gigachat_config.py,sha256=QvKTnp0VioXzd3_PUgNBeYx5RDTZT-45j-Ll-wXEI_o,421
8
- mmar_mapi/models/chat.py,sha256=KisHhE-wRU2ulwmizqkfUojqe9kWB2LMwgwRjvIZ7-M,12358
8
+ mmar_mapi/models/chat.py,sha256=v0--N-ZqUT2Ntzr_Yqvp_qlIlD6BC84um23LPkdiZpY,12479
9
9
  mmar_mapi/models/chat_item.py,sha256=ZfCKvTqr7gpuJSAuHVxWRnlTefRwki_IVNA2N_CXGdg,5557
10
10
  mmar_mapi/models/enums.py,sha256=J-GNpql9MCnKnWiV9aJRQGI-pAybvV86923RZs99grA,1006
11
11
  mmar_mapi/models/tracks.py,sha256=HKDp-BX1p7AlDfSEKfOKCu0TRSK9cD4Dmq1vJt8oRjw,307
@@ -13,7 +13,7 @@ mmar_mapi/models/widget.py,sha256=KXSP3d4yQNeificMfzRxROdByw9IkxwCjkDD0kc7tcQ,70
13
13
  mmar_mapi/type_union.py,sha256=diwmzcnbqkpGFckPHNw9o8zyQ955mOGNvhTlcBJ0RMI,1905
14
14
  mmar_mapi/utils.py,sha256=hcKJVslvTBLw2vjZ9zcKZxh_tqk48obHcVs_i3Rxn3M,112
15
15
  mmar_mapi/xml_parser.py,sha256=VvLIX_XCZao9i0qqpTVx8nx0vbFXSe8pEbdJdXnj97g,568
16
- mmar_mapi-1.0.3.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
17
- mmar_mapi-1.0.3.dist-info/WHEEL,sha256=Jb20R3Ili4n9P1fcwuLup21eQ5r9WXhs4_qy7VTrgPI,79
18
- mmar_mapi-1.0.3.dist-info/METADATA,sha256=oOWAqW2HW1Hp3zK05RCK0OlL6tTZkNzlSoxxOutRlO8,914
19
- mmar_mapi-1.0.3.dist-info/RECORD,,
16
+ mmar_mapi-1.0.4.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
17
+ mmar_mapi-1.0.4.dist-info/WHEEL,sha256=Jb20R3Ili4n9P1fcwuLup21eQ5r9WXhs4_qy7VTrgPI,79
18
+ mmar_mapi-1.0.4.dist-info/METADATA,sha256=Dj9rrWP3zUh0czwCLeNetPuVC7EFTxAtLA8BW1U4Ob8,914
19
+ mmar_mapi-1.0.4.dist-info/RECORD,,