seekrai 0.5.8__py3-none-any.whl → 0.5.9__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.
@@ -112,11 +112,10 @@ class ChatCompletions:
112
112
  n=n,
113
113
  safety_model=safety_model,
114
114
  response_format=response_format,
115
- tools=tools or [],
115
+ tools=tools or None,
116
116
  ).model_dump()
117
117
  if tool_choice is not None:
118
118
  parameter_payload["tool_choice"] = tool_choice
119
-
120
119
  response, _, _ = requestor.request(
121
120
  options=SeekrFlowRequest(
122
121
  method="POST",
@@ -158,8 +157,8 @@ class AsyncChatCompletions:
158
157
  n: int = 1,
159
158
  safety_model: str | None = None,
160
159
  response_format: Dict[str, str | Dict[str, Any]] | None = None,
161
- # tools: Dict[str, str | Dict[str, Any]] | None = None,
162
- # tool_choice: str | Dict[str, str | Dict[str, str]] | None = None,
160
+ tools: Dict[str, str | Dict[str, Any]] | None = None,
161
+ tool_choice: str | Dict[str, str | Dict[str, str]] | None = None,
163
162
  ) -> AsyncGenerator[ChatCompletionChunk, None] | ChatCompletionResponse:
164
163
  """
165
164
  Async method to generate completions based on a given prompt using a specified model.
@@ -235,9 +234,10 @@ class AsyncChatCompletions:
235
234
  n=n,
236
235
  safety_model=safety_model,
237
236
  response_format=response_format,
238
- # tools=tools,
239
- # tool_choice=tool_choice,
237
+ tools=tools or None,
240
238
  ).model_dump()
239
+ if tool_choice is not None:
240
+ parameter_payload["tool_choice"] = tool_choice
241
241
 
242
242
  response, _, _ = await requestor.arequest(
243
243
  options=SeekrFlowRequest(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: seekrai
3
- Version: 0.5.8
3
+ Version: 0.5.9
4
4
  Summary: Python client for SeekrAI
5
5
  License: Apache-2.0
6
6
  Author: SeekrFlow
@@ -13,7 +13,7 @@ seekrai/resources/agents/agents.py,sha256=d3C4VaXq4q5WlUr0f8txdRD3hvEKKvz4UQA-a_
13
13
  seekrai/resources/agents/threads.py,sha256=BwZ2_6wlezsb12PQjEw1fgdJh5S83SPgD6qZQoGvyIM,14544
14
14
  seekrai/resources/alignment.py,sha256=IOKlKK2I9_NhS9pwcrsd9-5OO7lVT8Uw0y_wuGHOnyA,5839
15
15
  seekrai/resources/chat/__init__.py,sha256=KmtPupgECtEN80NyvcnSmieTAFXhwmVxhMHP0qhspA4,618
16
- seekrai/resources/chat/completions.py,sha256=QcNsZqpJjkbiD_dN9fGBw8hgb_hLiHUqoMzHV_vtkqQ,12258
16
+ seekrai/resources/chat/completions.py,sha256=-nFk5aL1ejZ9WUi_ksDHqCnEnT2CjPX-RaigT3N35gA,12317
17
17
  seekrai/resources/completions.py,sha256=JhTN_lW2mblfHHONFmPC7QZei3wo5vx6GliMs9FkbOY,8452
18
18
  seekrai/resources/deployments.py,sha256=DY7IN7QgqDduCHGNuHENSVwrE5PXFL88jWgh8SES7Qk,5970
19
19
  seekrai/resources/embeddings.py,sha256=7G-VisYrT9J35-hcKB8cXhs8BSi93IfveQKfVSC7diA,2585
@@ -65,8 +65,8 @@ seekrai/utils/api_helpers.py,sha256=0Y8BblNIr9h_R12zdmhkxgTlxgoRkbq84QNi4nNWGu8,
65
65
  seekrai/utils/files.py,sha256=7ixn_hgV-6pEhYqLyOp-EN0o8c1CzUwJzX9n3PQ5oqo,7164
66
66
  seekrai/utils/tools.py,sha256=jgJTL-dOIouDbEJLdQpQfpXhqaz_poQYS52adyUtBjo,1781
67
67
  seekrai/version.py,sha256=q6iGQVFor8zXiPP5F-3vy9TndOxKv5JXbaNJ2kdOQws,125
68
- seekrai-0.5.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
69
- seekrai-0.5.8.dist-info/METADATA,sha256=aayyfKC7AZUcN4afB112qyaccnW9yWdblbki6N3Z5IY,4780
70
- seekrai-0.5.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
71
- seekrai-0.5.8.dist-info/entry_points.txt,sha256=N49yOEGi1sK7Xr13F_rkkcOxQ88suyiMoOmRhUHTZ_U,48
72
- seekrai-0.5.8.dist-info/RECORD,,
68
+ seekrai-0.5.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
69
+ seekrai-0.5.9.dist-info/METADATA,sha256=ZOnhU4QoIs5dAPLVX_zic81Zc5OZE0-EpkXad0iWJLc,4780
70
+ seekrai-0.5.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
71
+ seekrai-0.5.9.dist-info/entry_points.txt,sha256=N49yOEGi1sK7Xr13F_rkkcOxQ88suyiMoOmRhUHTZ_U,48
72
+ seekrai-0.5.9.dist-info/RECORD,,