pro-craft 0.1.20__py3-none-any.whl → 0.1.21__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.

Potentially problematic release.


This version of pro-craft might be problematic. Click here for more details.

@@ -282,13 +282,14 @@ class AsyncIntel():
282
282
  {opinion}
283
283
  """
284
284
 
285
- prompt, _ = await self.get_prompts_from_sql(prompt_id = prompt_id,version = version)
285
+ prompt_ = await self.get_prompts_from_sql(prompt_id = prompt_id,version = version,
286
+ session=session)
286
287
  if demand:
287
288
  new_prompt = await self.llm.aproduct(
288
- change_by_opinion_prompt.format(old_system_prompt=prompt, opinion=demand)
289
+ change_by_opinion_prompt.format(old_system_prompt=prompt_.prompt, opinion=demand)
289
290
  )
290
291
  else:
291
- new_prompt = prompt
292
+ new_prompt = prompt_
292
293
  await self.save_prompt_increment_version(prompt_id = prompt_id,
293
294
  new_prompt = new_prompt,
294
295
  use_case = " finetune ",
@@ -582,6 +583,7 @@ class AsyncIntel():
582
583
  ExtraFormats: list[object] = [],
583
584
  version: str = None,
584
585
  inference_save_case = True,
586
+ push_patch = False,
585
587
  ):
586
588
 
587
589
  base_format_prompt = """
@@ -598,7 +600,8 @@ class AsyncIntel():
598
600
  output_format=output_format,
599
601
  prompt_id=prompt_id,
600
602
  version=version,
601
- inference_save_case=inference_save_case
603
+ inference_save_case=inference_save_case,
604
+ push_patch = push_patch,
602
605
  )
603
606
 
604
607
  try:
@@ -628,6 +631,7 @@ class AsyncIntel():
628
631
  ExtraFormats: list[object] = [],
629
632
  version: str = None,
630
633
  inference_save_case = True,
634
+ push_patch = False,
631
635
  ):
632
636
 
633
637
  async with create_async_session(self.engine) as session:
@@ -645,6 +649,7 @@ class AsyncIntel():
645
649
  ExtraFormats = ExtraFormats,
646
650
  version = version,
647
651
  inference_save_case = inference_save_case,
652
+ push_patch = push_patch
648
653
  )
649
654
  )
650
655
  results = await asyncio.gather(*tasks, return_exceptions=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.20
3
+ Version: 0.1.21
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -9,9 +9,6 @@ Requires-Dist: anyio>=4.11.0
9
9
  Requires-Dist: db-help>=0.2.2
10
10
  Requires-Dist: fastapi>=0.119.0
11
11
  Requires-Dist: llmada>=1.1.11
12
- Requires-Dist: pytest>=8.4.2
13
- Requires-Dist: pytest-asyncio>=1.2.0
14
- Requires-Dist: pytest-tornasync>=0.6.0.post2
15
12
  Requires-Dist: pyyaml>=6.0.3
16
13
  Requires-Dist: toml>=0.10.2
17
14
  Requires-Dist: utils-tool==0.1.3
@@ -6,7 +6,7 @@ pro_craft/utils.py,sha256=R1DFkS4dsm5dIhg8lLTgBBvItvIYyyojROdh-ykqiYk,5250
6
6
  pro_craft/code_helper/coder.py,sha256=L6pRQr0pYRIHrMFZ4-pO_tZf1koxgGgF3L7Vl-GIyjM,24687
7
7
  pro_craft/code_helper/designer.py,sha256=3gyCqrjcw61sHzDjUPKhL1LOAE8xWLLbNT8NlK2mFLc,4739
8
8
  pro_craft/prompt_craft/__init__.py,sha256=83ruWO1Oci-DWvdVhPqcQrgdZTNfbmK72VQCkWASk7A,80
9
- pro_craft/prompt_craft/async_.py,sha256=QvomyFUm2Hq0ZhRdOVaD0EsJTwm3GIANgG4IptLVQuY,29040
9
+ pro_craft/prompt_craft/async_.py,sha256=hStvwPa8XtmdohZ1b0-Ntn2apFtbJtQSOHO7zq-oi2I,29286
10
10
  pro_craft/prompt_craft/evals.py,sha256=XzaaQgA-Vgo8MNPYTdN0hyFJNmgTvw2jroWmeA02pBs,1847
11
11
  pro_craft/prompt_craft/new.py,sha256=cHugfhLNUMQk_l8JQBg5ZQXPYXqspexnCOgp3YUzoD0,25894
12
12
  pro_craft/prompt_craft/sync.py,sha256=-rY1KxAP5FhxI6Vmm2hHoLvYMmtL7rbLcFQMqD9g8ZU,25841
@@ -14,7 +14,7 @@ pro_craft/server/mcp/__init__.py,sha256=4dbl-lFcm0r2tkOP04OxqiZG2jR-rqF181qi2AfU
14
14
  pro_craft/server/mcp/prompt.py,sha256=OZrsyUfSQMOY_KX7dWthW209adz5JfELsQ0ODfuQR44,1245
15
15
  pro_craft/server/router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  pro_craft/server/router/prompt.py,sha256=ecf8kpVqPp7q_VTcUNej3MAzpO4oywgY7TAV7R6qaBw,2745
17
- pro_craft-0.1.20.dist-info/METADATA,sha256=ov7D7Q4ggdzxCAY26ho_-fCF4U55t4GPaTBSkQ53gCE,1800
18
- pro_craft-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
- pro_craft-0.1.20.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
20
- pro_craft-0.1.20.dist-info/RECORD,,
17
+ pro_craft-0.1.21.dist-info/METADATA,sha256=awZX__HvjLGsaMOrADyOmUB4Gw3-YKP3VvCip0Vq5mk,1689
18
+ pro_craft-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
+ pro_craft-0.1.21.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
20
+ pro_craft-0.1.21.dist-info/RECORD,,