agi-med-common 5.0.7__tar.gz → 5.0.8__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.
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/PKG-INFO +1 -1
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/__init__.py +1 -1
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/chat_item.py +11 -4
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common.egg-info/PKG-INFO +1 -1
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/README.md +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/pyproject.toml +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/requirements.txt +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/setup.cfg +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/api/chat_manager_api.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/file_storage.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/logger/__init__.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/logger/log_level_enum.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/logger/logger.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/__init__.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/_base.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/enums.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/tracks.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/models/widget.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/parallel_map.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/utils.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/validators.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common/xml_parser.py +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common.egg-info/requires.txt +0 -0
- {agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common.egg-info/top_level.txt +0 -0
@@ -102,13 +102,20 @@ class ChatItem(_Base):
|
|
102
102
|
|
103
103
|
|
104
104
|
def _is_moderation_int_error(err):
|
105
|
-
|
105
|
+
# fmt: off
|
106
|
+
if err['type'] != 'string_type': return False
|
107
|
+
if err['loc'][0] != 'InnerContext': return False
|
108
|
+
if err['loc'][1] != 'Replicas': return False
|
109
|
+
if err['loc'][3] != 'Moderation': return False
|
110
|
+
if err['msg'] != 'Input should be a valid string': return False
|
111
|
+
# fmt: on
|
112
|
+
return True
|
113
|
+
|
106
114
|
|
107
115
|
def _is_moderation_int_errors(ex):
|
108
116
|
errs = ex.errors()
|
109
|
-
|
110
|
-
|
111
|
-
return all(map(_is_moderation_int_errors, errs))
|
117
|
+
return all(map(_is_moderation_int_error, errs))
|
118
|
+
|
112
119
|
|
113
120
|
def _parse_chat(chat_text: str) -> ChatItem:
|
114
121
|
try:
|
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
|
{agi_med_common-5.0.7 → agi_med_common-5.0.8}/src/agi_med_common.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|