retab 0.0.66__py3-none-any.whl → 0.0.67__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.
- retab/types/schemas/chat.py +2 -2
- retab/types/schemas/model.py +2 -2
- {retab-0.0.66.dist-info → retab-0.0.67.dist-info}/METADATA +3 -1
- {retab-0.0.66.dist-info → retab-0.0.67.dist-info}/RECORD +6 -6
- {retab-0.0.66.dist-info → retab-0.0.67.dist-info}/WHEEL +0 -0
- {retab-0.0.66.dist-info → retab-0.0.67.dist-info}/top_level.txt +0 -0
retab/types/schemas/chat.py
CHANGED
|
@@ -25,8 +25,8 @@ from openai.types.responses.response_input_message_content_list_param import Res
|
|
|
25
25
|
from openai.types.responses.response_input_param import ResponseInputItemParam
|
|
26
26
|
from openai.types.responses.response_input_text_param import ResponseInputTextParam
|
|
27
27
|
|
|
28
|
-
from
|
|
29
|
-
from
|
|
28
|
+
from ...types.chat import ChatCompletionRetabMessage
|
|
29
|
+
from ...types.documents.extract import RetabParsedChatCompletion, RetabParsedChoice
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
MediaType = Literal["image/jpeg", "image/png", "image/gif", "image/webp"]
|
retab/types/schemas/model.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import copy
|
|
2
2
|
import json
|
|
3
3
|
from typing import Any, Literal, Optional, Self, Union, Type, MutableMapping, Tuple, MutableSequence
|
|
4
|
-
from
|
|
4
|
+
from ...utils.hashing import generate_blake2b_hash_from_string
|
|
5
5
|
|
|
6
6
|
import datetime
|
|
7
7
|
from pathlib import Path
|
|
@@ -16,7 +16,7 @@ from pydantic import BaseModel, Field, PrivateAttr, computed_field, model_valida
|
|
|
16
16
|
from .chat import convert_to_anthropic_format, convert_to_google_genai_format
|
|
17
17
|
from .chat import convert_to_openai_completions_api_format
|
|
18
18
|
|
|
19
|
-
from
|
|
19
|
+
from ...utils.json_schema import convert_json_schema_to_basemodel, expand_refs, load_json_schema
|
|
20
20
|
from .chat import convert_to_openai_responses_api_format
|
|
21
21
|
from ..standards import StreamingBaseModel
|
|
22
22
|
from ..chat import ChatCompletionRetabMessage
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: retab
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.67
|
|
4
4
|
Summary: Retab official python library
|
|
5
5
|
Home-page: https://github.com/retab-dev/retab
|
|
6
6
|
Author: Retab
|
|
@@ -29,6 +29,8 @@ Requires-Dist: email_validator
|
|
|
29
29
|
Requires-Dist: python-stdnum
|
|
30
30
|
Requires-Dist: nanoid
|
|
31
31
|
Requires-Dist: openai
|
|
32
|
+
Requires-Dist: anthropic
|
|
33
|
+
Requires-Dist: google-genai
|
|
32
34
|
Requires-Dist: tiktoken
|
|
33
35
|
Requires-Dist: truststore
|
|
34
36
|
Dynamic: author
|
|
@@ -35,10 +35,10 @@ retab/types/projects/model.py,sha256=Lwn1KUzjBZl-kqugWRcmcUbEoRPxnH0Mn4ycrEJ-7i4
|
|
|
35
35
|
retab/types/projects/predictions.py,sha256=GeQX-nCmbzKL50aaSFlSyn0sgnbzKserPK6DSQT8ACk,1114
|
|
36
36
|
retab/types/projects/v2.py,sha256=8fNV5lH4Zn5D97AQK5pZVLjYFi-2MSBN9Su2eNoGVpM,6610
|
|
37
37
|
retab/types/schemas/__init__.py,sha256=9ODWiC_4pUVKxoIKglYZjvRjRyd1ZCVxG8GBdQgHNbU,57
|
|
38
|
-
retab/types/schemas/chat.py,sha256=
|
|
38
|
+
retab/types/schemas/chat.py,sha256=ppTidxsNslTKE5aBva04i9IxeARMqYpXYLjtR7V6pBc,21219
|
|
39
39
|
retab/types/schemas/generate.py,sha256=DN4pMJihoADyAZgA2RW7BddFzhbNOoaEnfEjjjUyMKM,1007
|
|
40
40
|
retab/types/schemas/layout.py,sha256=JLPwQGIWfPBoe1Y5r-MhiNDJigzZ-yKZnVGgox0uqMk,1487
|
|
41
|
-
retab/types/schemas/model.py,sha256=
|
|
41
|
+
retab/types/schemas/model.py,sha256=MwiSrck_5NCDvxjDSqgiDtmenGowXnfoOZ7KTINKW34,69588
|
|
42
42
|
retab/types/schemas/templates.py,sha256=XihWTHi6t_6QjxN07n_1dee5KdhHiuoHAYfmKwI7gQg,1708
|
|
43
43
|
retab/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
44
|
retab/utils/display.py,sha256=ZFPbiBnwEWGR-suS8e9Xilz9OqyYRDwsKYWfbFSJPJM,18868
|
|
@@ -48,7 +48,7 @@ retab/utils/mime.py,sha256=mTP_lqSPttOP5DYJxopiWaeFXrUCPjhwd7y53nCVGO4,6189
|
|
|
48
48
|
retab/utils/stream_context_managers.py,sha256=gI1gVQSj3nWz6Mvjz7Ix5AiY0g6vSL-c2tPfuP04izo,2314
|
|
49
49
|
retab/utils/usage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
50
|
retab/utils/usage/json_schema.py,sha256=kRbL5E5OStlhlNlBXlxHNwaVHKd6MVhyqIb0y4aj8JA,84322
|
|
51
|
-
retab-0.0.
|
|
52
|
-
retab-0.0.
|
|
53
|
-
retab-0.0.
|
|
54
|
-
retab-0.0.
|
|
51
|
+
retab-0.0.67.dist-info/METADATA,sha256=qg797L5faznA2QBVmLaGhmWoZcIvwxoSSp-qiaQPckA,4532
|
|
52
|
+
retab-0.0.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
53
|
+
retab-0.0.67.dist-info/top_level.txt,sha256=waQR0EGdhLIQtztoE3AXg7ik5ONQ9q_bsKVpyFuJdq0,6
|
|
54
|
+
retab-0.0.67.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|