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.
Files changed (77) hide show
  1. llm_bridge-1.15.7/.run/pytest.run.xml +18 -0
  2. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/PKG-INFO +2 -8
  3. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/README.md +1 -7
  4. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/file_type_checker.py +3 -3
  5. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/pyproject.toml +1 -1
  6. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/tests/file_type_checker_test.py +8 -1
  7. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/uv.lock +1 -1
  8. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.gitattributes +0 -0
  9. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.github/workflows/python-publish.yml +0 -0
  10. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.github/workflows/python-test.yaml +0 -0
  11. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/.gitignore +0 -0
  12. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/LICENSE +0 -0
  13. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/MANIFEST.in +0 -0
  14. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/__init__.py +0 -0
  15. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/__init__.py +0 -0
  16. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/chat_client.py +0 -0
  17. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/__init__.py +0 -0
  18. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/__init__.py +0 -0
  19. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/claude_response_handler.py +0 -0
  20. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/claude_token_counter.py +0 -0
  21. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/non_stream_claude_client.py +0 -0
  22. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/claude/stream_claude_client.py +0 -0
  23. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/__init__.py +0 -0
  24. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/gemini_response_handler.py +0 -0
  25. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/gemini_token_counter.py +0 -0
  26. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/non_stream_gemini_client.py +0 -0
  27. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/gemini/stream_gemini_client.py +0 -0
  28. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/__init__.py +0 -0
  29. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/non_stream_openai_client.py +0 -0
  30. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/non_stream_openai_responses_client.py +0 -0
  31. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/openai_responses_response_handler.py +0 -0
  32. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/openai_token_couter.py +0 -0
  33. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/steam_openai_responses_client.py +0 -0
  34. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/openai/stream_openai_client.py +0 -0
  35. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/implementations/printing_status.py +0 -0
  36. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/__init__.py +0 -0
  37. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/claude_client.py +0 -0
  38. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/gemini_client.py +0 -0
  39. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/client/model_client/openai_client.py +0 -0
  40. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/__init__.py +0 -0
  41. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/__init__.py +0 -0
  42. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/chat_client_factory.py +0 -0
  43. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/chat_message_converter.py +0 -0
  44. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/media_processor.py +0 -0
  45. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/__init__.py +0 -0
  46. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/claude_client_factory.py +0 -0
  47. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py +0 -0
  48. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py +0 -0
  49. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_client_factory/schema_converter.py +0 -0
  50. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/__init__.py +0 -0
  51. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/claude_message_converter.py +0 -0
  52. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/gemini_message_converter.py +0 -0
  53. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/chat_generate/model_message_converter/openai_message_converter.py +0 -0
  54. {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
  55. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/file_fetch.py +0 -0
  56. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/__init__.py +0 -0
  57. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/code_file_extensions.py +0 -0
  58. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/document_processor.py +0 -0
  59. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/message_preprocess/message_preprocessor.py +0 -0
  60. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/logic/model_prices.py +0 -0
  61. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/resources/__init__.py +0 -0
  62. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/resources/model_prices.json +0 -0
  63. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/__init__.py +0 -0
  64. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/chat_response.py +0 -0
  65. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/message.py +0 -0
  66. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/__init__.py +0 -0
  67. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/claude_message.py +0 -0
  68. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/gemini_message.py +0 -0
  69. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/openai_message.py +0 -0
  70. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/model_message/openai_responses_message.py +0 -0
  71. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/llm_bridge/type/serializer.py +0 -0
  72. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/tests/__init__.py +0 -0
  73. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/tests/model_prices_test.py +0 -0
  74. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/.env.example +0 -0
  75. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/config.py +0 -0
  76. {llm_bridge-1.15.6 → llm_bridge-1.15.7}/usage/main.py +0 -0
  77. {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.6
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 interacting with LLMs, including OpenAI (Native / Azure / GitHub), Gemini (AI Studio / Vertex), Claude, and Grok.
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 interacting with LLMs, including OpenAI (Native / Azure / GitHub), Gemini (AI Studio / Vertex), Claude, and Grok.
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
@@ -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'
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "LLM-Bridge"
7
- version = "1.15.6"
7
+ version = "1.15.7"
8
8
  dependencies = [
9
9
  "fastapi",
10
10
  "httpx",
@@ -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 test_get_file_type_without_extension():
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"
@@ -357,7 +357,7 @@ wheels = [
357
357
 
358
358
  [[package]]
359
359
  name = "llm-bridge"
360
- version = "1.15.6"
360
+ version = "1.15.7"
361
361
  source = { editable = "." }
362
362
  dependencies = [
363
363
  { name = "anthropic" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes