LLM-Bridge 1.7.14__py3-none-any.whl → 1.7.15__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.
- llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py +9 -7
- llm_bridge/resources/model_prices.json +24 -0
- {llm_bridge-1.7.14.dist-info → llm_bridge-1.7.15.dist-info}/METADATA +1 -1
- {llm_bridge-1.7.14.dist-info → llm_bridge-1.7.15.dist-info}/RECORD +7 -7
- {llm_bridge-1.7.14.dist-info → llm_bridge-1.7.15.dist-info}/WHEEL +0 -0
- {llm_bridge-1.7.14.dist-info → llm_bridge-1.7.15.dist-info}/licenses/LICENSE +0 -0
- {llm_bridge-1.7.14.dist-info → llm_bridge-1.7.15.dist-info}/top_level.txt +0 -0
|
@@ -54,16 +54,18 @@ async def create_openai_client(
|
|
|
54
54
|
else:
|
|
55
55
|
openai_messages = await convert_messages_to_openai(messages)
|
|
56
56
|
|
|
57
|
+
tools = [
|
|
58
|
+
WebSearchToolParam(
|
|
59
|
+
type="web_search_preview",
|
|
60
|
+
search_context_size="high",
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
|
|
57
64
|
if re.match(r"^o\d", model):
|
|
58
65
|
tools = None
|
|
59
66
|
temperature = 1
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
WebSearchToolParam(
|
|
63
|
-
type="web_search_preview",
|
|
64
|
-
search_context_size="high",
|
|
65
|
-
)
|
|
66
|
-
]
|
|
67
|
+
elif re.match(r"gpt-5.*", model):
|
|
68
|
+
temperature = 1
|
|
67
69
|
|
|
68
70
|
if use_responses_api:
|
|
69
71
|
if stream:
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"apiType": "OpenAI",
|
|
4
|
+
"model": "gpt-5",
|
|
5
|
+
"input": 1.25,
|
|
6
|
+
"output": 10
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"apiType": "OpenAI",
|
|
10
|
+
"model": "gpt-5-mini",
|
|
11
|
+
"input": 0.25,
|
|
12
|
+
"output": 2
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"apiType": "OpenAI",
|
|
16
|
+
"model": "gpt-5-nano",
|
|
17
|
+
"input": 0.05,
|
|
18
|
+
"output": 0.4
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"apiType": "OpenAI",
|
|
22
|
+
"model": "gpt-5-chat-latest",
|
|
23
|
+
"input": 1.25,
|
|
24
|
+
"output": 10
|
|
25
|
+
},
|
|
2
26
|
{
|
|
3
27
|
"apiType": "OpenAI",
|
|
4
28
|
"model": "gpt-4.1",
|
|
@@ -33,7 +33,7 @@ llm_bridge/logic/chat_generate/media_processor.py,sha256=1Rwhr7DsEB8HY5_li_hcuHz
|
|
|
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=_iX36A4WJx2-QeX4oAurOaRuCjvm8UDhaKL8lO9iP9o,2186
|
|
35
35
|
llm_bridge/logic/chat_generate/model_client_factory/gemini_client_factory.py,sha256=d_DnTZ2Rkbmo0La7uKnrVY9NO9wa6QZ8eK0hf2K1ZII,3041
|
|
36
|
-
llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py,sha256=
|
|
36
|
+
llm_bridge/logic/chat_generate/model_client_factory/openai_client_factory.py,sha256=8L5fTQpK7NeI7XBjrdgb658ysshDno-5Sns3rM_qdK0,3467
|
|
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=iIQNn5DTpLJM5l9aOWjCK1ppgcrOzp22kWE45kWXuZs,1578
|
|
46
46
|
llm_bridge/logic/message_preprocess/message_preprocessor.py,sha256=pWFAMo7IZP6_7Kl_B50rDABd455AEh5E6KDchfSa56A,1881
|
|
47
47
|
llm_bridge/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
|
-
llm_bridge/resources/model_prices.json,sha256=
|
|
48
|
+
llm_bridge/resources/model_prices.json,sha256=ww5HyWuQHp3sjcUftQ2wjGTa57rTMZksjK9VCkNlpuQ,2731
|
|
49
49
|
llm_bridge/type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
50
|
llm_bridge/type/chat_response.py,sha256=nNAgcWeMBV14VKTMTxWuChgv4zYqy-mVi4Xq9tqV7uE,410
|
|
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.7.
|
|
59
|
-
llm_bridge-1.7.
|
|
60
|
-
llm_bridge-1.7.
|
|
61
|
-
llm_bridge-1.7.
|
|
62
|
-
llm_bridge-1.7.
|
|
58
|
+
llm_bridge-1.7.15.dist-info/licenses/LICENSE,sha256=m6uon-6P_CaiqcBfApMfjG9YRtDxcr40Z52JcqUCEAE,1069
|
|
59
|
+
llm_bridge-1.7.15.dist-info/METADATA,sha256=GPDeEdcrzruBl7gcs7Mrb2E-NOkDH4LqdffR4tOGnmI,7194
|
|
60
|
+
llm_bridge-1.7.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
61
|
+
llm_bridge-1.7.15.dist-info/top_level.txt,sha256=PtxyrgNX1lSa1Ab_qswg0sekSXejG5zrS6b_v3Po05g,11
|
|
62
|
+
llm_bridge-1.7.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|