synth-ai 0.1.0.dev29__py3-none-any.whl → 0.1.0.dev30__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.
@@ -9,8 +9,9 @@ from synth_ai.zyk.lms.core.vendor_clients import (
9
9
  openai_naming_regexes,
10
10
  )
11
11
  from synth_ai.zyk.lms.structured_outputs.handler import StructuredOutputHandler
12
- from synth_ai.zyk.lms.vendors.base import VendorBase
12
+ from synth_ai.zyk.lms.vendors.base import VendorBase, BaseLMResponse
13
13
  from synth_ai.zyk.lms.tools.base import BaseTool
14
+
14
15
  REASONING_MODELS = ["deepseek-reasoner", "o1-mini", "o1-preview", "o1", "o3"]
15
16
 
16
17
 
@@ -121,7 +122,7 @@ class LM:
121
122
  response_model: Optional[BaseModel] = None,
122
123
  use_ephemeral_cache_only: bool = False,
123
124
  tools: Optional[List[BaseTool]] = None,
124
- ):
125
+ ) -> BaseLMResponse:
125
126
  assert (system_message is None) == (
126
127
  user_message is None
127
128
  ), "Must provide both system_message and user_message or neither"
@@ -174,7 +175,7 @@ class LM:
174
175
  response_model: Optional[BaseModel] = None,
175
176
  use_ephemeral_cache_only: bool = False,
176
177
  tools: Optional[List[BaseTool]] = None,
177
- ):
178
+ ) -> BaseLMResponse:
178
179
  # "In respond_async")
179
180
  assert (system_message is None) == (
180
181
  user_message is None
@@ -191,7 +192,7 @@ class LM:
191
192
  result = None
192
193
  if response_model:
193
194
  try:
194
- print("Trying structured output handler")
195
+ #print("Trying structured output handler")
195
196
  result = await self.structured_output_handler.call_async(
196
197
  messages,
197
198
  model=self.model_name,
@@ -200,7 +201,7 @@ class LM:
200
201
  use_ephemeral_cache_only=use_ephemeral_cache_only,
201
202
  )
202
203
  except StructuredOutputCoercionFailureException:
203
- print("Falling back to backup handler")
204
+ #print("Falling back to backup handler")
204
205
  result = await self.backup_structured_output_handler.call_async(
205
206
  messages,
206
207
  model=self.model_name,
@@ -209,7 +210,7 @@ class LM:
209
210
  use_ephemeral_cache_only=use_ephemeral_cache_only,
210
211
  )
211
212
  else:
212
- print("Calling API no response model")
213
+ #print("Calling API no response model")
213
214
  result = await self.client._hit_api_async(
214
215
  messages=messages,
215
216
  model=self.model_name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: synth-ai
3
- Version: 0.1.0.dev29
3
+ Version: 0.1.0.dev30
4
4
  Summary: Software for aiding the best and multiplying the will.
5
5
  Author: Josh Purtell
6
6
  Author-email: Josh Purtell <josh@usesynth.ai>
@@ -28,7 +28,7 @@ synth_ai/zyk/lms/caching/persistent.py,sha256=ZaY1A9qhvfNKzcAI9FnwbIrgMKvVeIfb_y
28
28
  synth_ai/zyk/lms/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  synth_ai/zyk/lms/core/all.py,sha256=wakK0HhvYRuaQZmxClURyNf3vUkTbm3OABw3TgpMjOQ,1185
30
30
  synth_ai/zyk/lms/core/exceptions.py,sha256=K0BVdAzxVIchsvYZAaHEH1GAWBZvpxhFi-SPcJOjyPQ,205
31
- synth_ai/zyk/lms/core/main.py,sha256=xuoCBAzWnyY52DVdBUJPjIoEIUaCtheAcHG1ZyP8ndQ,10223
31
+ synth_ai/zyk/lms/core/main.py,sha256=L6zKjF3UxSvW-UUykaX1gYEQ9wl9QOHQf8UJN5cfmwA,10279
32
32
  synth_ai/zyk/lms/core/vendor_clients.py,sha256=go6VGF3-JkZyUD81LwRkcBaxdWSVaV9vRxVTNqKSxvM,2781
33
33
  synth_ai/zyk/lms/cost/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  synth_ai/zyk/lms/cost/monitor.py,sha256=cSKIvw6WdPZIRubADWxQoh1MdB40T8-jjgfNUeUHIn0,5
@@ -55,11 +55,11 @@ synth_ai/zyk/lms/vendors/supported/deepseek.py,sha256=BElW0NGpkSA62wOqzzMtDw8XR3
55
55
  synth_ai/zyk/lms/vendors/supported/groq.py,sha256=Fbi7QvhdLx0F-VHO5PY-uIQlPR0bo3C9h1MvIOx8nz0,388
56
56
  synth_ai/zyk/lms/vendors/supported/ollama.py,sha256=K30VBFRTd7NYyPmyBVRZS2sm0UB651AHp9i3wd55W64,469
57
57
  synth_ai/zyk/lms/vendors/supported/together.py,sha256=Ni_jBqqGPN0PkkY-Ew64s3gNKk51k3FCpLSwlNhKbf0,342
58
- synth_ai-0.1.0.dev29.dist-info/licenses/LICENSE,sha256=ynhjRQUfqA_RdGRATApfFA_fBAy9cno04sLtLUqxVFM,1069
58
+ synth_ai-0.1.0.dev30.dist-info/licenses/LICENSE,sha256=ynhjRQUfqA_RdGRATApfFA_fBAy9cno04sLtLUqxVFM,1069
59
59
  tests/test_agent.py,sha256=CjPPWuMWC_TzX1DkDald-bbAxgjXE-HPQvFhq2B--5k,22363
60
60
  tests/test_recursive_structured_outputs.py,sha256=Ne-9XwnOxN7eSpGbNHOpegR-sRj589I84T6y8Z_4QnA,5781
61
61
  tests/test_structured_outputs.py,sha256=J7sfbGZ7OeB5ONIKpcCTymyayNyAdFfGokC1bcUrSx0,3651
62
- synth_ai-0.1.0.dev29.dist-info/METADATA,sha256=roTXgOH0Ms_JHCBW8uyG1nUnwV3QDamb-PlvmGqZ-Hw,2702
63
- synth_ai-0.1.0.dev29.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
64
- synth_ai-0.1.0.dev29.dist-info/top_level.txt,sha256=5GzJO9j-KbJ_4ppxhmCUa_qdhHM4-9cHHNU76yAI8do,42
65
- synth_ai-0.1.0.dev29.dist-info/RECORD,,
62
+ synth_ai-0.1.0.dev30.dist-info/METADATA,sha256=ryafJbsOXPxAxLfXRtJUw6EkJjcP2k1ND0TNgQTE59M,2702
63
+ synth_ai-0.1.0.dev30.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
64
+ synth_ai-0.1.0.dev30.dist-info/top_level.txt,sha256=5GzJO9j-KbJ_4ppxhmCUa_qdhHM4-9cHHNU76yAI8do,42
65
+ synth_ai-0.1.0.dev30.dist-info/RECORD,,