auto-coder 0.1.182__py3-none-any.whl → 0.1.183__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 auto-coder might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-coder
3
- Version: 0.1.182
3
+ Version: 0.1.183
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -26,7 +26,7 @@ Requires-Dist: tabulate
26
26
  Requires-Dist: jupyter-client
27
27
  Requires-Dist: prompt-toolkit
28
28
  Requires-Dist: tokenizers
29
- Requires-Dist: byzerllm[saas] >=0.1.135
29
+ Requires-Dist: byzerllm[saas] >=0.1.136
30
30
  Requires-Dist: patch
31
31
  Requires-Dist: diff-match-patch
32
32
  Requires-Dist: GitPython
@@ -1,13 +1,13 @@
1
1
  autocoder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  autocoder/auto_coder.py,sha256=HmgKa_ZApFlCsqo6BvuVeCPuncBT_Dh29ayZxxGR6lo,32216
3
3
  autocoder/auto_coder_lang.py,sha256=4qIS1tbEI8mpbtt6ThppTwKOM6MLuJTWJdgs5jIDGE0,2301
4
- autocoder/auto_coder_rag.py,sha256=V82EyeslAO2Z8qkMrwkyC11f1Cz6Ccjo9c867f0J_x8,11455
4
+ autocoder/auto_coder_rag.py,sha256=XGqpKmO7AVN4buAX-wuk1PgCGyvIiJwOf_kifhA3WDk,11765
5
5
  autocoder/auto_coder_server.py,sha256=qRY88mkBnqSGFDcwYE5gwpe2WPhIw1nEH6LdbjCQhQk,20306
6
- autocoder/chat_auto_coder.py,sha256=Yh9QRYsNe8_aQS9_R_K25WrNzLFS57sMDQTK6QKWR1U,81579
6
+ autocoder/chat_auto_coder.py,sha256=_FzDNees7yp5bWpbOSTkEUYCp4iz3Ghjs8pJogrFPy8,81707
7
7
  autocoder/chat_auto_coder_lang.py,sha256=QYtu5gWEQmWKVovR_qUZ8plySZarNFX_Onk-1vN9IiA,8524
8
8
  autocoder/command_args.py,sha256=ftWw6HnFUZPiQPt1oV-SfpHQe69XN3knaFy1lpROBcU,26854
9
9
  autocoder/lang.py,sha256=e-07rYTgimpxS8sm-AxKSmH4kKQX4N05YFHJBg9trVs,12598
10
- autocoder/version.py,sha256=yBRTO_Z5iUlFP8SyNJhLSxgyv7mchXV1x4AI3gAPbpA,23
10
+ autocoder/version.py,sha256=262HoV_V3P5Q9BFxC-7XwuMUEj7KKuFEc7fj0QupKz0,23
11
11
  autocoder/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  autocoder/agent/auto_tool.py,sha256=DBzip-P_T6ZtT2eHexPcusmKYD0h7ufzp7TLwXAY10E,11554
13
13
  autocoder/agent/coder.py,sha256=dnITYHqkcOip8zV4lywbkYNH9w7Q3qyYaUArJ4WPrTs,866
@@ -17,7 +17,7 @@ autocoder/agent/project_reader.py,sha256=-MWRqsr7O4mvU0PIpAhOUBb29htZAvA37pa_GeE
17
17
  autocoder/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  autocoder/common/JupyterClient.py,sha256=O-wi6pXeAEYhAY24kDa0BINrLYvKS6rKyWe98pDClS0,2816
19
19
  autocoder/common/ShellClient.py,sha256=fM1q8t_XMSbLBl2zkCNC2J9xuyKN3eXzGm6hHhqL2WY,2286
20
- autocoder/common/__init__.py,sha256=wKrFLZk9BMl755nL1gvPjXU-3uWKEnYBP8xsObIjM4g,10156
20
+ autocoder/common/__init__.py,sha256=7vL4gbnZ_c3ktAZfEgdh5fDkbDjGfrD1ybylQjgLBGs,10262
21
21
  autocoder/common/anything2images.py,sha256=0ILBbWzY02M-CiWB-vzuomb_J1hVdxRcenAfIrAXq9M,25283
22
22
  autocoder/common/audio.py,sha256=Kn9nWKQddWnUrAz0a_ZUgjcu4VUU_IcZBigT7n3N3qc,7439
23
23
  autocoder/common/cleaner.py,sha256=NU72i8C6o9m0vXExab7nao5bstBUsfJFcj11cXa9l4U,1089
@@ -62,7 +62,7 @@ autocoder/rag/api_server.py,sha256=zokIlDJlk7ucRorSLQm80uICO1mecfmn4J2zVqEBskE,6
62
62
  autocoder/rag/doc_filter.py,sha256=Ha0Yae_G_hF72YzvrO7NoDZcG18K4hRcqGAEqfrIwAs,9330
63
63
  autocoder/rag/document_retriever.py,sha256=i_ilMTQiMg8gLK8YibJuRDc_7CVxER6bNR6-ZlcIgVI,23420
64
64
  autocoder/rag/llm_wrapper.py,sha256=xRbTBpLUH43Ah5jplL8WWWU-kjKfNgEJoUntLGBq5F4,2484
65
- autocoder/rag/long_context_rag.py,sha256=V8Z1LNekm6s1XO950yab1QEj9C4vLJv3qpGqhsRqmBo,20356
65
+ autocoder/rag/long_context_rag.py,sha256=QA9RJ-NDBVl4W-gTs4ib_ZNs98EHSMAYHydt5QCsTq4,20509
66
66
  autocoder/rag/rag_config.py,sha256=8LwFcTd8OJWWwi1_WY4IzjqgtT6RyE2j4PjxS5cCTDE,802
67
67
  autocoder/rag/rag_entry.py,sha256=V1RJ8RGqM30DNPmzymv64rZjNRGWn6kfc8sRy_LECg0,2451
68
68
  autocoder/rag/raw_rag.py,sha256=yS2Ur6kG0IRjhCj2_VonwxjY_xls_E62jO5Gz5j2nqE,2952
@@ -95,9 +95,9 @@ autocoder/utils/request_event_queue.py,sha256=r3lo5qGsB1dIjzVQ05dnr0z_9Z3zOkBdP1
95
95
  autocoder/utils/request_queue.py,sha256=nwp6PMtgTCiuwJI24p8OLNZjUiprC-TsefQrhMI-yPE,3889
96
96
  autocoder/utils/rest.py,sha256=3tXA8KZG6jKz_tddHNLGx77Icee88WcUeesfNsgPno4,8790
97
97
  autocoder/utils/tests.py,sha256=BqphrwyycGAvs-5mhH8pKtMZdObwhFtJ5MC_ZAOiLq8,1340
98
- auto_coder-0.1.182.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
99
- auto_coder-0.1.182.dist-info/METADATA,sha256=WjlB66nfaLoKdyo3Q6SxF30Y65hJ4sNRsZBdz597IQ8,2352
100
- auto_coder-0.1.182.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
101
- auto_coder-0.1.182.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
102
- auto_coder-0.1.182.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
103
- auto_coder-0.1.182.dist-info/RECORD,,
98
+ auto_coder-0.1.183.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
99
+ auto_coder-0.1.183.dist-info/METADATA,sha256=kCcF3MOf3teH85V8JhNGYavQQczgFZtALK5s82BCBec,2352
100
+ auto_coder-0.1.183.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
101
+ auto_coder-0.1.183.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
102
+ auto_coder-0.1.183.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
103
+ auto_coder-0.1.183.dist-info/RECORD,,
@@ -231,6 +231,17 @@ def main(input_args: Optional[List[str]] = None):
231
231
  help="Disable reordering of document segments after retrieval",
232
232
  )
233
233
 
234
+ serve_parser.add_argument(
235
+ "--disable_inference_enhance",
236
+ action="store_true",
237
+ help="Disable enhanced inference mode",
238
+ )
239
+ serve_parser.add_argument(
240
+ "--inference_deep_thought",
241
+ action="store_true",
242
+ help="Enable deep thought in inference mode",
243
+ )
244
+
234
245
  # Tools command
235
246
  tools_parser = subparsers.add_parser("tools", help="Various tools")
236
247
  tools_subparsers = tools_parser.add_subparsers(dest="tool", help="Available tools")
@@ -718,10 +718,11 @@ class CommandCompleter(Completer):
718
718
 
719
719
  parser.coding()
720
720
  current_word = parser.current_word()
721
-
722
- for command in parser.get_sub_commands():
723
- if command.startswith(current_word):
724
- yield Completion(command, start_position=-len(current_word))
721
+
722
+ if len(new_text.strip()) == 0 or new_text.strip()=="/":
723
+ for command in parser.get_sub_commands():
724
+ if command.startswith(current_word):
725
+ yield Completion(command, start_position=-len(current_word))
725
726
 
726
727
  all_tags = parser.tags
727
728
 
@@ -796,6 +797,8 @@ class CommandCompleter(Completer):
796
797
  start_position=-len(name),
797
798
  display=f"{symbol.symbol_name} ({display_name}/{symbol.symbol_type})",
798
799
  )
800
+
801
+ tags = [tag for tag in parser.tags]
799
802
 
800
803
  if current_word.startswith("<"):
801
804
  name = current_word[1:]
@@ -807,9 +810,7 @@ class CommandCompleter(Completer):
807
810
  )
808
811
  elif tag.startswith(name):
809
812
  yield Completion(tag, start_position=-len(current_word))
810
-
811
- tags = [tag for tag in parser.tags]
812
-
813
+
813
814
  if tags and tags[-1].start_tag == "<img>" and tags[-1].end_tag == "":
814
815
  raw_file_name = tags[0].content
815
816
  file_name = raw_file_name.strip()
@@ -312,5 +312,8 @@ class AutoCoderArgs(pydantic.BaseModel):
312
312
  segment_ratio: Optional[float] = 0.2
313
313
  buff_ratio: Optional[float] = 0.1
314
314
 
315
+ disable_inference_enhance: Optional[bool] = False
316
+ inference_deep_thought: Optional[bool] = False
317
+
315
318
  class Config:
316
319
  protected_namespaces = ()
@@ -492,7 +492,10 @@ class LongContextRAG:
492
492
 
493
493
  if LLMComputeEngine is not None:
494
494
  llm_compute_engine = LLMComputeEngine(
495
- llm=self.llm, inference_enhance=True, debug=False
495
+ llm=self.llm,
496
+ inference_enhance=not self.args.disable_inference_enhance,
497
+ inference_deep_thought=self.args.inference_deep_thought,
498
+ debug=False,
496
499
  )
497
500
  new_conversations = llm_compute_engine.process_conversation(
498
501
  conversations, query, [doc.source_code for doc in relevant_docs]
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.182"
1
+ __version__ = "0.1.183"