pro-craft 0.1.21__tar.gz → 0.1.22__tar.gz
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-0.1.21 → pro_craft-0.1.22}/PKG-INFO +1 -1
- {pro_craft-0.1.21 → pro_craft-0.1.22}/pyproject.toml +1 -1
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/async_.py +5 -13
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft.egg-info/PKG-INFO +1 -1
- {pro_craft-0.1.21 → pro_craft-0.1.22}/README.md +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/setup.cfg +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/__init__.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/code_helper/coder.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/code_helper/designer.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/database.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/file_manager.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/log.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/__init__.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/evals.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/new.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/sync.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/server/mcp/__init__.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/server/mcp/prompt.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/server/router/__init__.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/server/router/prompt.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft/utils.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft.egg-info/SOURCES.txt +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft.egg-info/dependency_links.txt +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft.egg-info/requires.txt +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/src/pro_craft.egg-info/top_level.txt +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/tests/test22.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/tests/test_coder.py +0 -0
- {pro_craft-0.1.21 → pro_craft-0.1.22}/tests/test_designer.py +0 -0
|
@@ -330,7 +330,6 @@ class AsyncIntel():
|
|
|
330
330
|
prompt_id: str,
|
|
331
331
|
version: str = None,
|
|
332
332
|
inference_save_case = True,
|
|
333
|
-
push_patch = False,
|
|
334
333
|
):
|
|
335
334
|
if isinstance(input_data,dict):
|
|
336
335
|
input_ = json.dumps(input_data,ensure_ascii=False)
|
|
@@ -427,18 +426,15 @@ class AsyncIntel():
|
|
|
427
426
|
)
|
|
428
427
|
ai_result = await self.llm.aproduct(prompt + output_format + "\n-----input----\n" + input_)
|
|
429
428
|
elif result_obj.action_type == "patch":
|
|
430
|
-
|
|
431
429
|
demand = result_obj.demand
|
|
432
430
|
assert demand
|
|
433
|
-
|
|
434
431
|
chat_history = prompt + demand
|
|
435
432
|
ai_result = await self.llm.aproduct(chat_history + output_format + "\n-----input----\n" + input_)
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
session = session)
|
|
433
|
+
self.save_prompt_increment_version(prompt_id,
|
|
434
|
+
chat_history,
|
|
435
|
+
use_case = input_,
|
|
436
|
+
score = 60,
|
|
437
|
+
session = session)
|
|
442
438
|
|
|
443
439
|
else:
|
|
444
440
|
raise
|
|
@@ -583,7 +579,6 @@ class AsyncIntel():
|
|
|
583
579
|
ExtraFormats: list[object] = [],
|
|
584
580
|
version: str = None,
|
|
585
581
|
inference_save_case = True,
|
|
586
|
-
push_patch = False,
|
|
587
582
|
):
|
|
588
583
|
|
|
589
584
|
base_format_prompt = """
|
|
@@ -601,7 +596,6 @@ class AsyncIntel():
|
|
|
601
596
|
prompt_id=prompt_id,
|
|
602
597
|
version=version,
|
|
603
598
|
inference_save_case=inference_save_case,
|
|
604
|
-
push_patch = push_patch,
|
|
605
599
|
)
|
|
606
600
|
|
|
607
601
|
try:
|
|
@@ -631,7 +625,6 @@ class AsyncIntel():
|
|
|
631
625
|
ExtraFormats: list[object] = [],
|
|
632
626
|
version: str = None,
|
|
633
627
|
inference_save_case = True,
|
|
634
|
-
push_patch = False,
|
|
635
628
|
):
|
|
636
629
|
|
|
637
630
|
async with create_async_session(self.engine) as session:
|
|
@@ -649,7 +642,6 @@ class AsyncIntel():
|
|
|
649
642
|
ExtraFormats = ExtraFormats,
|
|
650
643
|
version = version,
|
|
651
644
|
inference_save_case = inference_save_case,
|
|
652
|
-
push_patch = push_patch
|
|
653
645
|
)
|
|
654
646
|
)
|
|
655
647
|
results = await asyncio.gather(*tasks, return_exceptions=False)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|