LLM-Bridge 1.7.12__tar.gz → 1.7.13__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.
- {llm_bridge-1.7.12 → llm_bridge-1.7.13/LLM_Bridge.egg-info}/PKG-INFO +2 -2
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/LLM_Bridge.egg-info/requires.txt +1 -1
- {llm_bridge-1.7.12/LLM_Bridge.egg-info → llm_bridge-1.7.13}/PKG-INFO +2 -2
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/document_processor.py +0 -73
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/pyproject.toml +2 -2
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/LICENSE +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/LLM_Bridge.egg-info/SOURCES.txt +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/LLM_Bridge.egg-info/dependency_links.txt +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/LLM_Bridge.egg-info/top_level.txt +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/MANIFEST.in +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/README.md +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/chat_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/claude/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/claude/claude_stream_response_handler.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/claude/claude_token_counter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/claude/non_stream_claude_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/claude/stream_claude_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/gemini/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/gemini/gemini_response_handler.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/gemini/gemini_token_counter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/gemini/non_stream_gemini_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/gemini/stream_gemini_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/non_stream_openai_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/non_stream_openai_responses_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/openai_token_couter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/steam_openai_responses_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/stream_openai_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/printing_status.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/model_client/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/model_client/claude_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/model_client/gemini_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/model_client/openai_client.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/chat_client_factory.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/chat_message_converter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/media_processor.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_client_factory/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_client_factory/claude_client_factory.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_message_converter/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_message_converter/claude_message_converter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_message_converter/gemini_message_converter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_message_converter/openai_message_converter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/model_message_converter/openai_responses_message_converter.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/file_fetch.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/code_file_extensions.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/file_type_checker.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/message_preprocessor.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/model_prices.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/resources/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/resources/model_prices.json +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/chat_response.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/message.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/model_message/__init__.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/model_message/claude_message.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/model_message/gemini_message.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/model_message/openai_message.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/model_message/openai_responses_message.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/serializer.py +0 -0
- {llm_bridge-1.7.12 → llm_bridge-1.7.13}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LLM-Bridge
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.13
|
|
4
4
|
Summary: A Bridge for LLMs
|
|
5
5
|
Author-email: windsnow1025 <windsnow1025@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -18,7 +18,7 @@ Requires-Dist: tiktoken
|
|
|
18
18
|
Requires-Dist: google-genai
|
|
19
19
|
Requires-Dist: anthropic
|
|
20
20
|
Requires-Dist: PyMuPDF
|
|
21
|
-
Requires-Dist: docxlatex
|
|
21
|
+
Requires-Dist: docxlatex>=1.1.1
|
|
22
22
|
Requires-Dist: openpyxl
|
|
23
23
|
Requires-Dist: python-pptx
|
|
24
24
|
Provides-Extra: test
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LLM-Bridge
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.13
|
|
4
4
|
Summary: A Bridge for LLMs
|
|
5
5
|
Author-email: windsnow1025 <windsnow1025@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -18,7 +18,7 @@ Requires-Dist: tiktoken
|
|
|
18
18
|
Requires-Dist: google-genai
|
|
19
19
|
Requires-Dist: anthropic
|
|
20
20
|
Requires-Dist: PyMuPDF
|
|
21
|
-
Requires-Dist: docxlatex
|
|
21
|
+
Requires-Dist: docxlatex>=1.1.1
|
|
22
22
|
Requires-Dist: openpyxl
|
|
23
23
|
Requires-Dist: python-pptx
|
|
24
24
|
Provides-Extra: test
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/document_processor.py
RENAMED
|
@@ -1,76 +1,3 @@
|
|
|
1
|
-
def apply_docxlatex_fix():
|
|
2
|
-
import docxlatex.parser.ommlparser
|
|
3
|
-
from docxlatex.parser.utils import qn
|
|
4
|
-
|
|
5
|
-
original_class = docxlatex.parser.ommlparser.OMMLParser
|
|
6
|
-
|
|
7
|
-
def safe_parse_d(self, root):
|
|
8
|
-
bracket_map = {
|
|
9
|
-
"(": "\\left(",
|
|
10
|
-
")": "\\right)",
|
|
11
|
-
"[": "\\left[",
|
|
12
|
-
"]": "\\right]",
|
|
13
|
-
"{": "\\left{",
|
|
14
|
-
"}": "\\right}",
|
|
15
|
-
"〈": "\\left\\langle",
|
|
16
|
-
"〉": "\\right\\rangle",
|
|
17
|
-
"⟨": "\\left\\langle", # patch
|
|
18
|
-
"⟩": "\\right\\rangle", # patch
|
|
19
|
-
"⌊": "\\left\\lfloor",
|
|
20
|
-
"⌋": "\\right\\rfloor",
|
|
21
|
-
"⌈": "\\left\\lceil",
|
|
22
|
-
"⌉": "\\right\\rceil",
|
|
23
|
-
"|": "\\left|",
|
|
24
|
-
"‖": "\\left\\|",
|
|
25
|
-
"⟦": "[\\![",
|
|
26
|
-
"⟧": "]\\!]",
|
|
27
|
-
}
|
|
28
|
-
text = ""
|
|
29
|
-
start_bracket = "("
|
|
30
|
-
end_bracket = ")"
|
|
31
|
-
seperator = "|"
|
|
32
|
-
for child in root:
|
|
33
|
-
if child.tag == qn("m:dPr"):
|
|
34
|
-
for child2 in child:
|
|
35
|
-
if child2.tag == qn("m:begChr"):
|
|
36
|
-
start_bracket = child2.attrib.get(qn("m:val"))
|
|
37
|
-
if child2.tag == qn("m:endChr"):
|
|
38
|
-
end_bracket = child2.attrib.get(qn("m:val"))
|
|
39
|
-
if child2.tag == qn("m:sepChr"):
|
|
40
|
-
seperator = child2.attrib.get(qn("m:val"))
|
|
41
|
-
for child in root:
|
|
42
|
-
if child.tag == qn("m:e"):
|
|
43
|
-
if text:
|
|
44
|
-
text += seperator
|
|
45
|
-
text += self.parse(child)
|
|
46
|
-
end_bracket_replacements = {
|
|
47
|
-
"|": "\\right|",
|
|
48
|
-
"‖": "\\right\\|",
|
|
49
|
-
"[": "\\right[",
|
|
50
|
-
}
|
|
51
|
-
start_bracket_replacements = {
|
|
52
|
-
"]": "\\left]",
|
|
53
|
-
}
|
|
54
|
-
if start_bracket:
|
|
55
|
-
if start_bracket in start_bracket_replacements:
|
|
56
|
-
text = start_bracket_replacements[start_bracket] + " " + text
|
|
57
|
-
else:
|
|
58
|
-
text = bracket_map[start_bracket] + " " + text
|
|
59
|
-
if end_bracket:
|
|
60
|
-
if end_bracket in end_bracket_replacements:
|
|
61
|
-
text += " " + end_bracket_replacements[end_bracket]
|
|
62
|
-
else:
|
|
63
|
-
text += " " + bracket_map[end_bracket]
|
|
64
|
-
return text
|
|
65
|
-
|
|
66
|
-
setattr(original_class, 'parse_d', safe_parse_d)
|
|
67
|
-
|
|
68
|
-
if hasattr(original_class, 'parsers'):
|
|
69
|
-
original_class.parsers[qn("m:d")] = safe_parse_d
|
|
70
|
-
|
|
71
|
-
apply_docxlatex_fix()
|
|
72
|
-
|
|
73
|
-
|
|
74
1
|
import logging
|
|
75
2
|
from io import BytesIO
|
|
76
3
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "LLM-Bridge"
|
|
7
|
-
version = "1.7.
|
|
7
|
+
version = "1.7.13"
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "windsnow1025", email = "windsnow1025@gmail.com"}
|
|
10
10
|
]
|
|
@@ -26,7 +26,7 @@ dependencies = [
|
|
|
26
26
|
"google-genai",
|
|
27
27
|
"anthropic",
|
|
28
28
|
"PyMuPDF",
|
|
29
|
-
"docxlatex",
|
|
29
|
+
"docxlatex>=1.1.1",
|
|
30
30
|
"openpyxl",
|
|
31
31
|
"python-pptx",
|
|
32
32
|
]
|
|
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
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/claude/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/gemini/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/openai/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/client/implementations/printing_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/chat_client_factory.py
RENAMED
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/chat_generate/chat_message_converter.py
RENAMED
|
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
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/code_file_extensions.py
RENAMED
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/file_type_checker.py
RENAMED
|
File without changes
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/logic/message_preprocess/message_preprocessor.py
RENAMED
|
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
|
{llm_bridge-1.7.12 → llm_bridge-1.7.13}/llm_bridge/type/model_message/openai_responses_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|