pro-craft 0.1.20__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.

Files changed (28) hide show
  1. {pro_craft-0.1.20 → pro_craft-0.1.22}/PKG-INFO +1 -4
  2. {pro_craft-0.1.20 → pro_craft-0.1.22}/pyproject.toml +2 -2
  3. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/async_.py +10 -13
  4. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft.egg-info/PKG-INFO +1 -4
  5. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft.egg-info/requires.txt +0 -3
  6. {pro_craft-0.1.20 → pro_craft-0.1.22}/README.md +0 -0
  7. {pro_craft-0.1.20 → pro_craft-0.1.22}/setup.cfg +0 -0
  8. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/__init__.py +0 -0
  9. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/code_helper/coder.py +0 -0
  10. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/code_helper/designer.py +0 -0
  11. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/database.py +0 -0
  12. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/file_manager.py +0 -0
  13. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/log.py +0 -0
  14. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/__init__.py +0 -0
  15. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/evals.py +0 -0
  16. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/new.py +0 -0
  17. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/prompt_craft/sync.py +0 -0
  18. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/server/mcp/__init__.py +0 -0
  19. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/server/mcp/prompt.py +0 -0
  20. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/server/router/__init__.py +0 -0
  21. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/server/router/prompt.py +0 -0
  22. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft/utils.py +0 -0
  23. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft.egg-info/SOURCES.txt +0 -0
  24. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft.egg-info/dependency_links.txt +0 -0
  25. {pro_craft-0.1.20 → pro_craft-0.1.22}/src/pro_craft.egg-info/top_level.txt +0 -0
  26. {pro_craft-0.1.20 → pro_craft-0.1.22}/tests/test22.py +0 -0
  27. {pro_craft-0.1.20 → pro_craft-0.1.22}/tests/test_coder.py +0 -0
  28. {pro_craft-0.1.20 → pro_craft-0.1.22}/tests/test_designer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.20
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
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "pro-craft"
3
- version = "0.1.20"
3
+ version = "0.1.22"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
7
- dependencies = [ "aiomysql>=0.2.0", "anyio>=4.11.0", "db-help>=0.2.2", "fastapi>=0.119.0", "llmada>=1.1.11", "pytest>=8.4.2", "pytest-asyncio>=1.2.0", "pytest-tornasync>=0.6.0.post2", "pyyaml>=6.0.3", "toml>=0.10.2", "utils-tool==0.1.3", "uvicorn>=0.38.0",]
7
+ dependencies = [ "aiomysql>=0.2.0", "anyio>=4.11.0", "db-help>=0.2.2", "fastapi>=0.119.0", "llmada>=1.1.11", "pyyaml>=6.0.3", "toml>=0.10.2", "utils-tool==0.1.3", "uvicorn>=0.38.0",]
8
8
 
9
9
  [tool.setuptools.package-data]
10
10
  pro_craft = [ "config.yaml",]
@@ -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 ",
@@ -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
- if push_patch:
437
- self.save_prompt_increment_version(prompt_id, chat_history,
438
- use_case = input_,
439
- score = 60,
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.20
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
@@ -3,9 +3,6 @@ anyio>=4.11.0
3
3
  db-help>=0.2.2
4
4
  fastapi>=0.119.0
5
5
  llmada>=1.1.11
6
- pytest>=8.4.2
7
- pytest-asyncio>=1.2.0
8
- pytest-tornasync>=0.6.0.post2
9
6
  pyyaml>=6.0.3
10
7
  toml>=0.10.2
11
8
  utils-tool==0.1.3
File without changes
File without changes
File without changes