synth-ai 0.1.0.dev33__py3-none-any.whl → 0.1.0.dev35__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.
- synth_ai/zyk/lms/vendors/constants.py +18 -1
- synth_ai/zyk/lms/vendors/openai_standard.py +9 -9
- {synth_ai-0.1.0.dev33.dist-info → synth_ai-0.1.0.dev35.dist-info}/METADATA +1 -1
- {synth_ai-0.1.0.dev33.dist-info → synth_ai-0.1.0.dev35.dist-info}/RECORD +7 -7
- {synth_ai-0.1.0.dev33.dist-info → synth_ai-0.1.0.dev35.dist-info}/WHEEL +0 -0
- {synth_ai-0.1.0.dev33.dist-info → synth_ai-0.1.0.dev35.dist-info}/licenses/LICENSE +0 -0
- {synth_ai-0.1.0.dev33.dist-info → synth_ai-0.1.0.dev35.dist-info}/top_level.txt +0 -0
@@ -2,4 +2,21 @@ SPECIAL_BASE_TEMPS = {
|
|
2
2
|
"claude-3-5-sonnet-20240620": 0.7,
|
3
3
|
"o1-mini": 1,
|
4
4
|
"o1-preview": 1,
|
5
|
-
|
5
|
+
"o1": 1,
|
6
|
+
"o3-mini": 1,
|
7
|
+
"o3": 1,
|
8
|
+
"o4-mini": 1,
|
9
|
+
"o4": 1,
|
10
|
+
}
|
11
|
+
|
12
|
+
openai_reasoners = [
|
13
|
+
"o1-mini",
|
14
|
+
"o1-preview",
|
15
|
+
"o1",
|
16
|
+
"o3-mini",
|
17
|
+
"o3",
|
18
|
+
"o4-mini",
|
19
|
+
"o4",
|
20
|
+
"o5-mini",
|
21
|
+
"o5",
|
22
|
+
]
|
@@ -10,7 +10,7 @@ from synth_ai.zyk.lms.caching.initialize import (
|
|
10
10
|
)
|
11
11
|
from synth_ai.zyk.lms.tools.base import BaseTool
|
12
12
|
from synth_ai.zyk.lms.vendors.base import BaseLMResponse, VendorBase
|
13
|
-
from synth_ai.zyk.lms.vendors.constants import SPECIAL_BASE_TEMPS
|
13
|
+
from synth_ai.zyk.lms.vendors.constants import SPECIAL_BASE_TEMPS, openai_reasoners
|
14
14
|
|
15
15
|
DEFAULT_EXCEPTIONS_TO_RETRY = (
|
16
16
|
pydantic_core._pydantic_core.ValidationError,
|
@@ -108,13 +108,13 @@ class OpenAIStandard(VendorBase):
|
|
108
108
|
api_params["tools"].append(tool)
|
109
109
|
|
110
110
|
# Only add temperature for non o1/o3 models
|
111
|
-
if
|
111
|
+
if model not in openai_reasoners:
|
112
112
|
api_params["temperature"] = lm_config.get(
|
113
113
|
"temperature", SPECIAL_BASE_TEMPS.get(model, 0)
|
114
114
|
)
|
115
115
|
|
116
116
|
# Add reasoning_effort only for o3-mini
|
117
|
-
if model in
|
117
|
+
if model in openai_reasoners:
|
118
118
|
print("Reasoning effort:", reasoning_effort)
|
119
119
|
api_params["reasoning_effort"] = reasoning_effort
|
120
120
|
|
@@ -191,13 +191,13 @@ class OpenAIStandard(VendorBase):
|
|
191
191
|
api_params["tools"].append(tool)
|
192
192
|
|
193
193
|
# Only add temperature for non o1/o3 models
|
194
|
-
if
|
194
|
+
if model not in openai_reasoners:
|
195
195
|
api_params["temperature"] = lm_config.get(
|
196
196
|
"temperature", SPECIAL_BASE_TEMPS.get(model, 0)
|
197
197
|
)
|
198
198
|
|
199
199
|
# Add reasoning_effort only for o3-mini
|
200
|
-
if model in
|
200
|
+
if model in openai_reasoners:
|
201
201
|
api_params["reasoning_effort"] = reasoning_effort
|
202
202
|
|
203
203
|
output = self.sync_client.chat.completions.create(**api_params)
|
@@ -264,13 +264,13 @@ class OpenAIStandard(VendorBase):
|
|
264
264
|
api_params["tools"].append(tool)
|
265
265
|
|
266
266
|
# Only add temperature for non o1/o3 models
|
267
|
-
if
|
267
|
+
if model not in openai_reasoners:
|
268
268
|
api_params["temperature"] = lm_config.get(
|
269
269
|
"temperature", SPECIAL_BASE_TEMPS.get(model, 0)
|
270
270
|
)
|
271
271
|
|
272
272
|
# Add reasoning_effort only for o3-mini
|
273
|
-
if model in
|
273
|
+
if model in openai_reasoners:
|
274
274
|
api_params["reasoning_effort"] = reasoning_effort
|
275
275
|
|
276
276
|
output = await self.async_client.chat.completions.create(**api_params)
|
@@ -325,13 +325,13 @@ class OpenAIStandard(VendorBase):
|
|
325
325
|
api_params["tools"].append(tool)
|
326
326
|
|
327
327
|
# Only add temperature for non o1/o3 models
|
328
|
-
if
|
328
|
+
if model not in openai_reasoners:
|
329
329
|
api_params["temperature"] = lm_config.get(
|
330
330
|
"temperature", SPECIAL_BASE_TEMPS.get(model, 0)
|
331
331
|
)
|
332
332
|
|
333
333
|
# Add reasoning_effort only for o3-mini
|
334
|
-
if model in
|
334
|
+
if model in openai_reasoners:
|
335
335
|
api_params["reasoning_effort"] = reasoning_effort
|
336
336
|
|
337
337
|
output = self.sync_client.chat.completions.create(**api_params)
|
@@ -41,8 +41,8 @@ synth_ai/zyk/lms/structured_outputs/rehabilitate.py,sha256=GuIhzsb7rTvwgn7f9I9om
|
|
41
41
|
synth_ai/zyk/lms/tools/base.py,sha256=j7wYb1xAvaAm3qVrINphgUhGS-UjZmRpbouseQYgh7A,3228
|
42
42
|
synth_ai/zyk/lms/vendors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
43
43
|
synth_ai/zyk/lms/vendors/base.py,sha256=aK4PEtkMLt_o3qD22kW-x3HJUEKdIk06zlH4kX0VkAE,760
|
44
|
-
synth_ai/zyk/lms/vendors/constants.py,sha256=
|
45
|
-
synth_ai/zyk/lms/vendors/openai_standard.py,sha256=
|
44
|
+
synth_ai/zyk/lms/vendors/constants.py,sha256=3CCq45otD80yaLts5sFHvPgLCQNkcjHkc9cqOQ0zH4Y,320
|
45
|
+
synth_ai/zyk/lms/vendors/openai_standard.py,sha256=oii23QtG_sh_V2yFV1ZMF7F0t9Q_mGL8yM_QxZnZ9QA,12091
|
46
46
|
synth_ai/zyk/lms/vendors/retries.py,sha256=m-WvAiPix9ovnO2S-m53Td5VZDWBVBFuHuSK9--OVxw,38
|
47
47
|
synth_ai/zyk/lms/vendors/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
48
|
synth_ai/zyk/lms/vendors/core/anthropic_api.py,sha256=vxANYEcU46n6flRJ4y5j4VrSA1ky4EXo8nWgYPLi3HU,13829
|
@@ -56,11 +56,11 @@ synth_ai/zyk/lms/vendors/supported/deepseek.py,sha256=BElW0NGpkSA62wOqzzMtDw8XR3
|
|
56
56
|
synth_ai/zyk/lms/vendors/supported/groq.py,sha256=Fbi7QvhdLx0F-VHO5PY-uIQlPR0bo3C9h1MvIOx8nz0,388
|
57
57
|
synth_ai/zyk/lms/vendors/supported/ollama.py,sha256=K30VBFRTd7NYyPmyBVRZS2sm0UB651AHp9i3wd55W64,469
|
58
58
|
synth_ai/zyk/lms/vendors/supported/together.py,sha256=Ni_jBqqGPN0PkkY-Ew64s3gNKk51k3FCpLSwlNhKbf0,342
|
59
|
-
synth_ai-0.1.0.
|
59
|
+
synth_ai-0.1.0.dev35.dist-info/licenses/LICENSE,sha256=ynhjRQUfqA_RdGRATApfFA_fBAy9cno04sLtLUqxVFM,1069
|
60
60
|
tests/test_agent.py,sha256=CjPPWuMWC_TzX1DkDald-bbAxgjXE-HPQvFhq2B--5k,22363
|
61
61
|
tests/test_recursive_structured_outputs.py,sha256=Ne-9XwnOxN7eSpGbNHOpegR-sRj589I84T6y8Z_4QnA,5781
|
62
62
|
tests/test_structured_outputs.py,sha256=J7sfbGZ7OeB5ONIKpcCTymyayNyAdFfGokC1bcUrSx0,3651
|
63
|
-
synth_ai-0.1.0.
|
64
|
-
synth_ai-0.1.0.
|
65
|
-
synth_ai-0.1.0.
|
66
|
-
synth_ai-0.1.0.
|
63
|
+
synth_ai-0.1.0.dev35.dist-info/METADATA,sha256=T0RAPsjK51rDJ_uTIeny_E99x-lL9fRQHuQjowIyVuk,2702
|
64
|
+
synth_ai-0.1.0.dev35.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
65
|
+
synth_ai-0.1.0.dev35.dist-info/top_level.txt,sha256=5GzJO9j-KbJ_4ppxhmCUa_qdhHM4-9cHHNU76yAI8do,42
|
66
|
+
synth_ai-0.1.0.dev35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|