pro-craft 0.1.20__py3-none-any.whl → 0.1.22__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.
- pro_craft/prompt_craft/async_.py +10 -13
- {pro_craft-0.1.20.dist-info → pro_craft-0.1.22.dist-info}/METADATA +1 -4
- {pro_craft-0.1.20.dist-info → pro_craft-0.1.22.dist-info}/RECORD +5 -5
- {pro_craft-0.1.20.dist-info → pro_craft-0.1.22.dist-info}/WHEEL +0 -0
- {pro_craft-0.1.20.dist-info → pro_craft-0.1.22.dist-info}/top_level.txt +0 -0
pro_craft/prompt_craft/async_.py
CHANGED
|
@@ -282,13 +282,14 @@ class AsyncIntel():
|
|
|
282
282
|
{opinion}
|
|
283
283
|
"""
|
|
284
284
|
|
|
285
|
-
|
|
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 =
|
|
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 ",
|
|
@@ -329,7 +330,6 @@ class AsyncIntel():
|
|
|
329
330
|
prompt_id: str,
|
|
330
331
|
version: str = None,
|
|
331
332
|
inference_save_case = True,
|
|
332
|
-
push_patch = False,
|
|
333
333
|
):
|
|
334
334
|
if isinstance(input_data,dict):
|
|
335
335
|
input_ = json.dumps(input_data,ensure_ascii=False)
|
|
@@ -426,18 +426,15 @@ class AsyncIntel():
|
|
|
426
426
|
)
|
|
427
427
|
ai_result = await self.llm.aproduct(prompt + output_format + "\n-----input----\n" + input_)
|
|
428
428
|
elif result_obj.action_type == "patch":
|
|
429
|
-
|
|
430
429
|
demand = result_obj.demand
|
|
431
430
|
assert demand
|
|
432
|
-
|
|
433
431
|
chat_history = prompt + demand
|
|
434
432
|
ai_result = await self.llm.aproduct(chat_history + output_format + "\n-----input----\n" + input_)
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
session = session)
|
|
433
|
+
self.save_prompt_increment_version(prompt_id,
|
|
434
|
+
chat_history,
|
|
435
|
+
use_case = input_,
|
|
436
|
+
score = 60,
|
|
437
|
+
session = session)
|
|
441
438
|
|
|
442
439
|
else:
|
|
443
440
|
raise
|
|
@@ -598,7 +595,7 @@ class AsyncIntel():
|
|
|
598
595
|
output_format=output_format,
|
|
599
596
|
prompt_id=prompt_id,
|
|
600
597
|
version=version,
|
|
601
|
-
inference_save_case=inference_save_case
|
|
598
|
+
inference_save_case=inference_save_case,
|
|
602
599
|
)
|
|
603
600
|
|
|
604
601
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pro-craft
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.22
|
|
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=
|
|
9
|
+
pro_craft/prompt_craft/async_.py,sha256=CzphO_1zrRpJ__7g5FnBWr7RonK0uwe8uMtV9qA65uY,29099
|
|
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.
|
|
18
|
-
pro_craft-0.1.
|
|
19
|
-
pro_craft-0.1.
|
|
20
|
-
pro_craft-0.1.
|
|
17
|
+
pro_craft-0.1.22.dist-info/METADATA,sha256=zWNEnMPy98Uf1yuXtIujwtbnxTOYPULo6gHsmsrTOZk,1689
|
|
18
|
+
pro_craft-0.1.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
pro_craft-0.1.22.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
|
|
20
|
+
pro_craft-0.1.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|