seekrai 0.5.8__py3-none-any.whl → 0.5.11__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(
seekrai/types/finetune.py CHANGED
@@ -77,6 +77,7 @@ class FinetuneEventType(str, Enum):
77
77
  class FineTuneType(str, Enum):
78
78
  STANDARD = "STANDARD"
79
79
  DPO = "DPO"
80
+ GRPO = "GRPO"
80
81
 
81
82
 
82
83
  class FinetuneEvent(BaseModel):
@@ -108,6 +109,8 @@ class TrainingConfig(BaseModel):
108
109
  batch_size: int = Field(..., ge=1, le=1024)
109
110
  # up to 40 character suffix for output model name
110
111
  experiment_name: str | None = None
112
+ # sequence length
113
+ max_length: int = 2500
111
114
  # # weights & biases api key
112
115
  # wandb_key: str | None = None
113
116
  # IFT by default
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: seekrai
3
- Version: 0.5.8
3
+ Version: 0.5.11
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
@@ -53,7 +53,7 @@ seekrai/types/embeddings.py,sha256=OANoLNOs0aceS8NppVvvcNYQbF7-pAOAmcr30pw64OU,7
53
53
  seekrai/types/error.py,sha256=uTKISs9aRC4_6zwirtNkanxepN8KY-SqCq0kNbfZylQ,370
54
54
  seekrai/types/explainability.py,sha256=l9dp9DJ_GPkHzNw_3zwiGkpAWDETMDN8NSoymhKvdgc,1420
55
55
  seekrai/types/files.py,sha256=yjJYT8twY-cNh9AY9qlcN_moTeCfR0tJSSCQsOVB02Y,2708
56
- seekrai/types/finetune.py,sha256=IcIaeaMVoITLApCB_h_TFYtQe2kOGDqZFCh9j77Vlgk,6435
56
+ seekrai/types/finetune.py,sha256=pt6lJYXnkHDgMo61zPWvgB04I4sdlijCb0velkrT7TY,6502
57
57
  seekrai/types/images.py,sha256=Fusj8OhVYFsT8kz636lRGGivLbPXo_ZNgakKwmzJi3U,914
58
58
  seekrai/types/ingestion.py,sha256=uUdKOR4xqSfAXWQOR1UOltSlOnuyAwKVA1Q2a6Yslk8,919
59
59
  seekrai/types/models.py,sha256=9Z0nvLdlAfpF8mNRW5-IqBdDHoE-3qQ5przmIDJgwLo,1345
@@ -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.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
69
+ seekrai-0.5.11.dist-info/METADATA,sha256=pPqdBDfPu-dJ7GozIqK1lWoxODbSl_tX-X0FKmsSbyg,4781
70
+ seekrai-0.5.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
71
+ seekrai-0.5.11.dist-info/entry_points.txt,sha256=N49yOEGi1sK7Xr13F_rkkcOxQ88suyiMoOmRhUHTZ_U,48
72
+ seekrai-0.5.11.dist-info/RECORD,,