pyconverters-openai_vision 0.5.54__py3-none-any.whl → 0.5.56__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.
- pyconverters_openai_vision/__init__.py +1 -1
- pyconverters_openai_vision/openai_vision.py +2 -2
- {pyconverters_openai_vision-0.5.54.dist-info → pyconverters_openai_vision-0.5.56.dist-info}/METADATA +1 -1
- pyconverters_openai_vision-0.5.56.dist-info/RECORD +7 -0
- pyconverters_openai_vision-0.5.54.dist-info/RECORD +0 -7
- {pyconverters_openai_vision-0.5.54.dist-info → pyconverters_openai_vision-0.5.56.dist-info}/WHEEL +0 -0
- {pyconverters_openai_vision-0.5.54.dist-info → pyconverters_openai_vision-0.5.56.dist-info}/entry_points.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""OpenAIVision converter"""
|
|
2
|
-
__version__ = "0.5.
|
|
2
|
+
__version__ = "0.5.56"
|
|
@@ -407,11 +407,11 @@ def regex_sub_preserve_spans(
|
|
|
407
407
|
if spans is not None:
|
|
408
408
|
new_spans = []
|
|
409
409
|
for span in spans:
|
|
410
|
-
if span.start not in char_map or span.end
|
|
410
|
+
if span.start not in char_map or span.end not in char_map:
|
|
411
411
|
continue
|
|
412
412
|
|
|
413
413
|
new_start = char_map[span.start]
|
|
414
|
-
new_end = char_map[span.end
|
|
414
|
+
new_end = min(char_map[span.end], len(new_text))
|
|
415
415
|
|
|
416
416
|
new_span = Sentence(
|
|
417
417
|
start=new_start,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pyconverters_openai_vision/__init__.py,sha256=OMagzKFEjIEQmj0yhvu7zQFZiydIw5H_9-pspA1PcwQ,52
|
|
2
|
+
pyconverters_openai_vision/openai_utils.py,sha256=XI4WYZ-EAVG0Vxd5yUDuZNDgEzqHJeriScxTUusi1oo,7740
|
|
3
|
+
pyconverters_openai_vision/openai_vision.py,sha256=AUqfDUS8ZstA__BYQgDl_zZFgUa8Cr-MpU3ndknva-o,25870
|
|
4
|
+
pyconverters_openai_vision-0.5.56.dist-info/entry_points.txt,sha256=NR0re-yebKKyhApky1I6nDQzjJQfEyfOkJlJju0Ngzo,404
|
|
5
|
+
pyconverters_openai_vision-0.5.56.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
6
|
+
pyconverters_openai_vision-0.5.56.dist-info/METADATA,sha256=XLgQCVHCUpKFBZbX900GhcEEwi0n2f06YFeKACWPgPI,2662
|
|
7
|
+
pyconverters_openai_vision-0.5.56.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
pyconverters_openai_vision/__init__.py,sha256=7ClUk4wE7QRUGKj6xr8-2iGGhMXl4YKmtuY0IeYJq8I,52
|
|
2
|
-
pyconverters_openai_vision/openai_utils.py,sha256=XI4WYZ-EAVG0Vxd5yUDuZNDgEzqHJeriScxTUusi1oo,7740
|
|
3
|
-
pyconverters_openai_vision/openai_vision.py,sha256=d2qlPgD8vfMelZVH-6fvdXWns9nkVxCIAwx_UenOvRc,25862
|
|
4
|
-
pyconverters_openai_vision-0.5.54.dist-info/entry_points.txt,sha256=NR0re-yebKKyhApky1I6nDQzjJQfEyfOkJlJju0Ngzo,404
|
|
5
|
-
pyconverters_openai_vision-0.5.54.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
6
|
-
pyconverters_openai_vision-0.5.54.dist-info/METADATA,sha256=DpVk7gRhFPN0WYWyS1Pzhy-BKHVWtC2dWeLhRI70yX4,2662
|
|
7
|
-
pyconverters_openai_vision-0.5.54.dist-info/RECORD,,
|
{pyconverters_openai_vision-0.5.54.dist-info → pyconverters_openai_vision-0.5.56.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|