pro-craft 0.1.17__tar.gz → 0.1.18__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.17 → pro_craft-0.1.18}/PKG-INFO +1 -1
- {pro_craft-0.1.17 → pro_craft-0.1.18}/pyproject.toml +1 -1
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/prompt_craft/sync.py +24 -13
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/server/router/prompt.py +1 -1
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft.egg-info/PKG-INFO +1 -1
- {pro_craft-0.1.17 → pro_craft-0.1.18}/README.md +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/setup.cfg +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/__init__.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/code_helper/coder.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/code_helper/designer.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/database.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/file_manager.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/log.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/prompt_craft/__init__.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/prompt_craft/async_.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/prompt_craft/evals.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/prompt_craft/new.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/server/mcp/__init__.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/server/mcp/prompt.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/server/router/__init__.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft/utils.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft.egg-info/SOURCES.txt +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft.egg-info/dependency_links.txt +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft.egg-info/requires.txt +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/src/pro_craft.egg-info/top_level.txt +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/tests/test22.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/tests/test_coder.py +0 -0
- {pro_craft-0.1.17 → pro_craft-0.1.18}/tests/test_designer.py +0 -0
|
@@ -419,24 +419,35 @@ class Intel():
|
|
|
419
419
|
# 则训练推广
|
|
420
420
|
|
|
421
421
|
# 新版本 默人修改会 inference 状态
|
|
422
|
-
|
|
422
|
+
prompt = result_obj.prompt
|
|
423
423
|
before_input = result_obj.use_case
|
|
424
424
|
demand = result_obj.demand
|
|
425
|
+
|
|
426
|
+
# assert demand
|
|
427
|
+
# # 注意, 这里的调整要求使用最初的那个输入, 最好一口气调整好
|
|
428
|
+
|
|
429
|
+
# if input_ == before_input: # 输入没变, 说明还是针对同一个输入进行讨论
|
|
430
|
+
# # input_prompt = chat_history + "\nuser:" + demand
|
|
431
|
+
# input_prompt = chat_history + "\nuser:" + demand + output_format
|
|
432
|
+
# else:
|
|
433
|
+
# # input_prompt = chat_history + "\nuser:" + demand + "\n-----input----\n" + input_
|
|
434
|
+
# input_prompt = chat_history + "\nuser:" + demand + output_format + "\n-----input----\n" + input_
|
|
425
435
|
|
|
436
|
+
# ai_result = self.llm.product(input_prompt)
|
|
437
|
+
# chat_history = input_prompt + "\nassistant:\n" + ai_result # 用聊天记录作为完整提示词
|
|
426
438
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
chat_history = prompt
|
|
430
|
-
if input_ == before_input: # 输入没变, 说明还是针对同一个输入进行讨论
|
|
431
|
-
# input_prompt = chat_history + "\nuser:" + demand
|
|
432
|
-
input_prompt = chat_history + "\nuser:" + demand + output_format
|
|
439
|
+
if input_ == before_input:
|
|
440
|
+
new_prompt = prompt + "\nuser:" + demand
|
|
433
441
|
else:
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
442
|
+
new_prompt = prompt + "\nuser:" + input_
|
|
443
|
+
|
|
444
|
+
ai_result = self.llm.product(new_prompt + output_format)
|
|
445
|
+
|
|
446
|
+
save_new_prompt = new_prompt + "\nassistant:\n" + ai_result
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
self.save_prompt_increment_version(prompt_id,
|
|
450
|
+
new_prompt=save_new_prompt,
|
|
440
451
|
use_case = input_,
|
|
441
452
|
score = 60,
|
|
442
453
|
session = session)
|
|
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
|