LLM-Bridge 1.12.0a0__py3-none-any.whl → 1.12.1__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.
@@ -21,7 +21,7 @@ async def extract_text_files_to_message(message: Message, api_type: str) -> None
21
21
  if file_type != "text" and file_type != "application":
22
22
  continue
23
23
 
24
- if sub_type == "pdf" and api_type in ("OpenAI", "OpenAI-Azure", "Gemini-Free", "Gemini-Paid", "Claude"):
24
+ if sub_type == "pdf" and api_type in ("OpenAI", "OpenAI-Azure", "Gemini-Vertex", "Gemini-Free", "Gemini-Paid", "Claude"):
25
25
  continue
26
26
 
27
27
  filename = get_file_name(file_url)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: LLM-Bridge
3
- Version: 1.12.0a0
3
+ Version: 1.12.1
4
4
  Summary: A Bridge for LLMs
5
5
  Author-email: windsnow1025 <windsnow1025@gmail.com>
6
6
  License-Expression: MIT
@@ -30,7 +30,7 @@ Dynamic: license-file
30
30
 
31
31
  # LLM Bridge
32
32
 
33
- LLM Bridge is a unified Python interface for interacting with LLMs, including OpenAI, OpenAI-Azure, OpenAI-GitHub, Gemini, Claude, and Grok.
33
+ LLM Bridge is a unified Python interface for interacting with LLMs, including OpenAI (Native / Azure / GitHub), Gemini (AI Studio / Vertex), Claude, and Grok.
34
34
 
35
35
  GitHub: [https://github.com/windsnow1025/LLM-Bridge](https://github.com/windsnow1025/LLM-Bridge)
36
36
 
@@ -39,30 +39,31 @@ PyPI: [https://pypi.org/project/LLM-Bridge/](https://pypi.org/project/LLM-Bridge
39
39
  ## Workflow and Features
40
40
 
41
41
  1. **Message Preprocessor**: extracts text content from documents (Word, Excel, PPT, Code files, PDFs) which are not natively supported by the target model.
42
- 2. **Chat Client Factory**: create a client for the specific LLM API with model parameters
43
- 1. **Model Message Converter**: convert general messages to model messages
44
- 1. **Media Processor**: converts media (Image, Audio, Video, PDF) which are natively supported by the target model into compatible formats.
42
+ 2. **Chat Client Factory**: creates a client for the specific LLM API with model parameters
43
+ 1. **Model Message Converter**: converts general messages to model messages
44
+ 1. **Media Processor**: converts general media (Image, Audio, Video, PDF) to model compatible formats.
45
45
  3. **Chat Client**: generate stream or non-stream responses
46
- 1. **Model Thoughts**: captures and formats the model's thinking process
47
- 2. **Search Citations**: extracts and formats citations from search results
48
- 3. **Token Counter**: tracks and reports input and output token usage
46
+ - **Model Thoughts**: captures and formats the model's thinking process
47
+ - **Code Execution**: auto generate and execute Python code
48
+ - **Web Search + Citations**: extracts and formats citations from search results
49
+ - **Token Counter**: tracks and reports input and output token usage
49
50
 
50
- ### Model Features
51
+ ### Supported Features for API Types
51
52
 
52
53
  The features listed represent the maximum capabilities of each API type supported by LLM Bridge.
53
54
 
54
55
  | API Type | Input Format | Capabilities | Output Format |
55
56
  |----------|--------------------------------|--------------------------------------------------|-------------------|
56
- | OpenAI | Text, Image | Thinking, Web Search, Code Execution | Text |
57
+ | OpenAI | Text, Image, PDF | Thinking, Web Search, Code Execution | Text |
57
58
  | Gemini | Text, Image, Video, Audio, PDF | Thinking, Web Search + Citations, Code Execution | Text, Image, File |
58
59
  | Claude | Text, Image, PDF | Thinking, Web Search, Code Execution | Text |
59
60
  | Grok | Text, Image | | Text |
60
61
 
61
62
  #### Planned Features
62
63
 
63
- - OpenAI: Web Search: Citations, Image Output
64
- - Gemini: Code Execution: Code, Code Output
65
- - Claude: Code Execution, File Output
64
+ - Structured Output
65
+ - More features for API Types
66
+ - Native support for Grok
66
67
 
67
68
  ## Installation
68
69
 
@@ -43,7 +43,7 @@ llm_bridge/logic/message_preprocess/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
43
43
  llm_bridge/logic/message_preprocess/code_file_extensions.py,sha256=5bsnSKC9PGbl6ZMy80sXfagAbz77pGjt6Z2-qwzUw48,9306
44
44
  llm_bridge/logic/message_preprocess/document_processor.py,sha256=IsVqoFgWNa9i8cRsDAfmCynJMdlvBqiCKIT9kbx96kg,2861
45
45
  llm_bridge/logic/message_preprocess/file_type_checker.py,sha256=nkrVki1a2udCeVqUnfIVi7Wxx8OMKbBuHw3FOlm17uo,1603
46
- llm_bridge/logic/message_preprocess/message_preprocessor.py,sha256=ERws57Dsu-f5LpWKqJ_SEP7omNWXeGoJaocX91P6QDQ,1907
46
+ llm_bridge/logic/message_preprocess/message_preprocessor.py,sha256=VR4__ip4ytAo62DHn9HeeYdbcx5lWItBnKsm9l3gmY4,1924
47
47
  llm_bridge/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  llm_bridge/resources/model_prices.json,sha256=JUvODxZICUqeD2vDmZCpvATE6nlCZgpU8VmQj9M9LaE,3086
49
49
  llm_bridge/type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -55,8 +55,8 @@ llm_bridge/type/model_message/claude_message.py,sha256=gYJUTbLUeifQMva3Axarc-VFe
55
55
  llm_bridge/type/model_message/gemini_message.py,sha256=mh8pf929g7_NkBzSOwnLXyrwSzTT4yt2FmyX7NZn0sM,4302
56
56
  llm_bridge/type/model_message/openai_message.py,sha256=xFaLY-cZoSwNd7E9BSWQjBNcRfCVH11X9s2yxXlctR0,453
57
57
  llm_bridge/type/model_message/openai_responses_message.py,sha256=be1q2euA0ybjj4NO6NxOGIRB9eJuXSb4ssUm_bM4Ocs,1529
58
- llm_bridge-1.12.0a0.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
59
- llm_bridge-1.12.0a0.dist-info/METADATA,sha256=-OGfwe8cLZCU2LcEhR4X6cE4Ks9-wuzltmcp80y4F3k,3374
60
- llm_bridge-1.12.0a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
61
- llm_bridge-1.12.0a0.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
62
- llm_bridge-1.12.0a0.dist-info/RECORD,,
58
+ llm_bridge-1.12.1.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
59
+ llm_bridge-1.12.1.dist-info/METADATA,sha256=Q0zdwFJs9HeNtHeoFRXzdOMMyDnj9txRsChxF-a_m0Q,3388
60
+ llm_bridge-1.12.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
61
+ llm_bridge-1.12.1.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
62
+ llm_bridge-1.12.1.dist-info/RECORD,,