LLM-Bridge 1.15.6__tar.gz → 1.15.7__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.15.7/.run/pytest.run.xml +18 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/PKG-INFO +2 -8
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/README.md +1 -7
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/file_type_checker.py +3 -3
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/pyproject.toml +1 -1
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/tests/file_type_checker_test.py +8 -1
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/uv.lock +1 -1
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.gitattributes +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.github/workflows/python-publish.yml +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.github/workflows/python-test.yaml +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.gitignore +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/LICENSE +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/MANIFEST.in +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/chat_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/claude_response_handler.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/claude_token_counter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/non_stream_claude_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/stream_claude_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/gemini_response_handler.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/gemini_token_counter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/non_stream_gemini_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/stream_gemini_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/non_stream_openai_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/non_stream_openai_responses_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/openai_responses_response_handler.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/openai_token_couter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/steam_openai_responses_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/stream_openai_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/printing_status.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/claude_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/gemini_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/openai_client.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/chat_client_factory.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/chat_message_converter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/media_processor.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/claude_client_factory.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/schema_converter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/claude_message_converter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/gemini_message_converter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/openai_message_converter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/openai_responses_message_converter.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/file_fetch.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/code_file_extensions.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/document_processor.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/message_preprocessor.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/model_prices.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/resources/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/resources/model_prices.json +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/chat_response.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/message.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/claude_message.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/gemini_message.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/openai_message.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/openai_responses_message.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/serializer.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/tests/__init__.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/tests/model_prices_test.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/.env.example +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/config.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/main.py +0 -0
- {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/workflow.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
|
2
|
+
<configuration default="false" name="pytest" type="UvRunConfigurationType" factoryName="UvRunConfigurationType">
|
|
3
|
+
<option name="args">
|
|
4
|
+
<list />
|
|
5
|
+
</option>
|
|
6
|
+
<option name="checkSync" value="true" />
|
|
7
|
+
<option name="env">
|
|
8
|
+
<map />
|
|
9
|
+
</option>
|
|
10
|
+
<option name="runType" value="MODULE" />
|
|
11
|
+
<option name="scriptOrModule" value="pytest" />
|
|
12
|
+
<option name="uvArgs">
|
|
13
|
+
<list />
|
|
14
|
+
</option>
|
|
15
|
+
<option name="uvSdkKey" value="uv (LLM-Bridge)" />
|
|
16
|
+
<method v="2" />
|
|
17
|
+
</configuration>
|
|
18
|
+
</component>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LLM-Bridge
|
|
3
|
-
Version: 1.15.
|
|
3
|
+
Version: 1.15.7
|
|
4
4
|
Summary: A Bridge for LLMs
|
|
5
5
|
Author-email: windsnow1025 <windsnow1025@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
|
|
|
24
24
|
|
|
25
25
|
# LLM Bridge
|
|
26
26
|
|
|
27
|
-
LLM Bridge is a unified Python interface for
|
|
27
|
+
LLM Bridge is a unified Python interface for native interactions with various LLM providers.
|
|
28
28
|
|
|
29
29
|
GitHub: [https://github.com/windsnow1025/LLM-Bridge](https://github.com/windsnow1025/LLM-Bridge)
|
|
30
30
|
|
|
@@ -81,12 +81,6 @@ The features listed represent the maximum capabilities of each API type supporte
|
|
|
81
81
|
|
|
82
82
|
Copy `./usage/.env.example` and rename it to `./usage/.env`, then fill in the environment variables.
|
|
83
83
|
|
|
84
|
-
### Test
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
uv run pytest
|
|
88
|
-
```
|
|
89
|
-
|
|
90
84
|
### Build
|
|
91
85
|
|
|
92
86
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LLM Bridge
|
|
2
2
|
|
|
3
|
-
LLM Bridge is a unified Python interface for
|
|
3
|
+
LLM Bridge is a unified Python interface for native interactions with various LLM providers.
|
|
4
4
|
|
|
5
5
|
GitHub: [https://github.com/windsnow1025/LLM-Bridge](https://github.com/windsnow1025/LLM-Bridge)
|
|
6
6
|
|
|
@@ -57,12 +57,6 @@ The features listed represent the maximum capabilities of each API type supporte
|
|
|
57
57
|
|
|
58
58
|
Copy `./usage/.env.example` and rename it to `./usage/.env`, then fill in the environment variables.
|
|
59
59
|
|
|
60
|
-
### Test
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
uv run pytest
|
|
64
|
-
```
|
|
65
|
-
|
|
66
60
|
### Build
|
|
67
61
|
|
|
68
62
|
```bash
|
{llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/file_type_checker.py
RENAMED
|
@@ -15,11 +15,11 @@ def is_file_type_supported(file_name: str) -> bool:
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
async def get_file_type(file_url: str) -> tuple[str, str]:
|
|
18
|
-
file_name = get_filename_without_timestamp(file_url)
|
|
18
|
+
file_name: str = get_filename_without_timestamp(file_url)
|
|
19
19
|
|
|
20
20
|
# Treat filenames without an extension as their own extension
|
|
21
|
-
suffix = PurePosixPath(file_name).suffix.lower()
|
|
22
|
-
file_extension = suffix if suffix else '.' + file_name.lower()
|
|
21
|
+
suffix: str = PurePosixPath(file_name).suffix.lower()
|
|
22
|
+
file_extension: str = suffix if suffix else '.' + file_name.lower()
|
|
23
23
|
|
|
24
24
|
if file_extension in code_file_extensions:
|
|
25
25
|
return 'text', 'code'
|
|
@@ -5,13 +5,20 @@ from llm_bridge.logic.message_preprocess.file_type_checker import get_file_type
|
|
|
5
5
|
|
|
6
6
|
@pytest.mark.asyncio
|
|
7
7
|
async def test_get_file_type_with_extension():
|
|
8
|
+
file_type, sub_type = await get_file_type("https://example.com/1767243600000-markdown.md")
|
|
9
|
+
assert file_type == "text"
|
|
10
|
+
assert sub_type == "code"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@pytest.mark.asyncio
|
|
14
|
+
async def test_get_file_type_pdf():
|
|
8
15
|
file_type, sub_type = await get_file_type("https://example.com/1767243600000-document.pdf")
|
|
9
16
|
assert file_type == "text"
|
|
10
17
|
assert sub_type == "pdf"
|
|
11
18
|
|
|
12
19
|
|
|
13
20
|
@pytest.mark.asyncio
|
|
14
|
-
async def
|
|
21
|
+
async def test_get_file_type_dockerfile():
|
|
15
22
|
file_type, sub_type = await get_file_type("https://example.com/1767243600000-Dockerfile")
|
|
16
23
|
assert file_type == "text"
|
|
17
24
|
assert sub_type == "code"
|
|
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.15.6 → llm_bridge-1.15.7}/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.15.6 → llm_bridge-1.15.7}/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.15.6 → llm_bridge-1.15.7}/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
|
|
File without changes
|
{llm_bridge-1.15.6 → llm_bridge-1.15.7}/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.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/chat_client_factory.py
RENAMED
|
File without changes
|
{llm_bridge-1.15.6 → llm_bridge-1.15.7}/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
|
|
File without changes
|
{llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/code_file_extensions.py
RENAMED
|
File without changes
|
{llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/document_processor.py
RENAMED
|
File without changes
|
{llm_bridge-1.15.6 → llm_bridge-1.15.7}/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.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/openai_responses_message.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
|