LLM-Bridge 1.10.1__py3-none-any.whl → 1.10.3__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.
@@ -60,19 +60,20 @@ async def create_openai_client(
60
60
  tools = []
61
61
  reasoning = None
62
62
 
63
- if model != "gpt-5-chat-latest":
64
- tools.append(
65
- WebSearchToolParam(
66
- type="web_search",
67
- search_context_size="high",
68
- )
69
- )
63
+ if model not in ["gpt-5-chat-latest", "gpt-5-pro"]:
70
64
  tools.append(
71
65
  CodeInterpreter(
72
66
  type="code_interpreter",
73
67
  container=CodeInterpreterContainerCodeInterpreterToolAuto(type="auto")
74
68
  )
75
69
  )
70
+ if model not in ["gpt-5-chat-latest"]:
71
+ tools.append(
72
+ WebSearchToolParam(
73
+ type="web_search",
74
+ search_context_size="high",
75
+ )
76
+ )
76
77
  if re.match(r"^o\d", model) or (re.match(r"gpt-5.*", model) and model != "gpt-5-chat-latest"):
77
78
  temperature = 1
78
79
  if re.match(r"gpt-5.*", model) and model != "gpt-5-chat-latest":
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "apiType": "OpenAI",
4
+ "model": "gpt-5-chat-latest",
5
+ "input": 1.25,
6
+ "output": 10
7
+ },
2
8
  {
3
9
  "apiType": "OpenAI",
4
10
  "model": "gpt-4.1",
@@ -13,15 +19,15 @@
13
19
  },
14
20
  {
15
21
  "apiType": "OpenAI",
16
- "model": "gpt-5-chat-latest",
22
+ "model": "gpt-5",
17
23
  "input": 1.25,
18
24
  "output": 10
19
25
  },
20
26
  {
21
27
  "apiType": "OpenAI",
22
- "model": "gpt-5",
23
- "input": 1.25,
24
- "output": 10
28
+ "model": "gpt-5-pro",
29
+ "input": 15,
30
+ "output": 120
25
31
  },
26
32
  {
27
33
  "apiType": "OpenAI",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: LLM-Bridge
3
- Version: 1.10.1
3
+ Version: 1.10.3
4
4
  Summary: A Bridge for LLMs
5
5
  Author-email: windsnow1025 <windsnow1025@gmail.com>
6
6
  License-Expression: MIT
@@ -33,7 +33,7 @@ llm_bridge/logic/chat_generate/media_processor.py,sha256=ZR8G24EHwZZr2T9iFDRmScD
33
33
  llm_bridge/logic/chat_generate/model_client_factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  llm_bridge/logic/chat_generate/model_client_factory/claude_client_factory.py,sha256=j8RwLDul_zdZIIZfzrJji3VmqnYVAV61Xjrbp4NC69k,2603
35
35
  llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py,sha256=ORiyVkLytTN4nyvdzH6P7BCbpj07CHVNFWuNuL0d6UQ,3252
36
- llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py,sha256=5DLyWhl5Ab5cRA6awTdAlBTmzmy65iiXKxysaDc2XzU,4301
36
+ llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py,sha256=uSDkNcUKdyzfJBE_KPq9Uqpt_DpDulluGjUT-iq8li0,4363
37
37
  llm_bridge/logic/chat_generate/model_message_converter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  llm_bridge/logic/chat_generate/model_message_converter/claude_message_converter.py,sha256=SfDhQXR7L5nCPHS4MIjwgzK_wER7qOUCc8gh-K77kKY,2441
39
39
  llm_bridge/logic/chat_generate/model_message_converter/gemini_message_converter.py,sha256=UjhzRX7sBa3-Zv1flMJd8bc8uRWMMav4UdJFhE6nVq4,1527
@@ -45,7 +45,7 @@ llm_bridge/logic/message_preprocess/document_processor.py,sha256=IsVqoFgWNa9i8cR
45
45
  llm_bridge/logic/message_preprocess/file_type_checker.py,sha256=nkrVki1a2udCeVqUnfIVi7Wxx8OMKbBuHw3FOlm17uo,1603
46
46
  llm_bridge/logic/message_preprocess/message_preprocessor.py,sha256=ERws57Dsu-f5LpWKqJ_SEP7omNWXeGoJaocX91P6QDQ,1907
47
47
  llm_bridge/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
- llm_bridge/resources/model_prices.json,sha256=GuW-K7K6tdfgDLYRF1JwBlA8nrapp2k9XolDzufooWE,2923
48
+ llm_bridge/resources/model_prices.json,sha256=PZDW5TA8pORW7AV_Pc5iIImx2wBcq_f1ua3_S_8fwUw,3018
49
49
  llm_bridge/type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
50
  llm_bridge/type/chat_response.py,sha256=zEw-my_I0-7msmlTySdBGE2vWUIPILex0UrUPqTJiYY,754
51
51
  llm_bridge/type/message.py,sha256=NyWmSSrciFfvF81aBwAH8qFpo5IpRhh8QXMselbYen8,370
@@ -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.10.1.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
59
- llm_bridge-1.10.1.dist-info/METADATA,sha256=IYm-pSuHHvrqwmKDIorSDkemARXRwhy0iE0qmUnrrjE,7849
60
- llm_bridge-1.10.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
61
- llm_bridge-1.10.1.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
62
- llm_bridge-1.10.1.dist-info/RECORD,,
58
+ llm_bridge-1.10.3.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
59
+ llm_bridge-1.10.3.dist-info/METADATA,sha256=7zxhu_1olI8cYwdnIgZYPMgISj2LxvjJf4w-dzHLmi0,7849
60
+ llm_bridge-1.10.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
61
+ llm_bridge-1.10.3.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
62
+ llm_bridge-1.10.3.dist-info/RECORD,,