auto-coder 0.1.179__py3-none-any.whl → 0.1.180__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.179
3
+ Version: 0.1.180
4
4
  Summary: AutoCoder: AutoCoder
5
5
  Author: allwefantasy
6
6
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -7,7 +7,7 @@ autocoder/chat_auto_coder.py,sha256=i5xIuWlTqF0pJz8kXoa-_bW3Ic3SfCFvU2WJIMxrUHU,
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=2dEBMYUzBVdhW5N4Nqr07NH9Uz48P3Yl417KfXorcI4,23
10
+ autocoder/version.py,sha256=tZ5NEZ8v2jJI2haSkVp6Z_IQgn6qgJO_W0AKWXW0xKo,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
@@ -60,9 +60,9 @@ autocoder/pyproject/__init__.py,sha256=-2-ImQVw6e3NQZQOyDlHEP5b4xVs5ur2G5izB-JCa
60
60
  autocoder/rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  autocoder/rag/api_server.py,sha256=zokIlDJlk7ucRorSLQm80uICO1mecfmn4J2zVqEBskE,6786
62
62
  autocoder/rag/doc_filter.py,sha256=LqU8Wi6klwpY9WTHVtkioSHpmo9IWhRz39dzV1gvp6E,9315
63
- autocoder/rag/document_retriever.py,sha256=Kz79hl9Iro1TTznn486WuzULmEatQqtAExcEIIFbL9k,23420
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=FW4Qv7YpNXOMrNbe28p3hY-baes6nwyVmZ7Qq73J-uc,20173
65
+ autocoder/rag/long_context_rag.py,sha256=tBybvQ-Kgr35c75BdLAxMMTWzzmManFrNlbz6T5bKKI,20301
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.179.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
99
- auto_coder-0.1.179.dist-info/METADATA,sha256=Fs9mfHZCIadHFKZ7kT4yPmT_cFLvBRMtbSjySL1QT8o,2352
100
- auto_coder-0.1.179.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
101
- auto_coder-0.1.179.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
102
- auto_coder-0.1.179.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
103
- auto_coder-0.1.179.dist-info/RECORD,,
98
+ auto_coder-0.1.180.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
99
+ auto_coder-0.1.180.dist-info/METADATA,sha256=WxvIdHyOjdAjufxRWDJdMte7ZwFkd6xJSULcugctfkU,2352
100
+ auto_coder-0.1.180.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
101
+ auto_coder-0.1.180.dist-info/entry_points.txt,sha256=0nzHtHH4pNcM7xq4EBA2toS28Qelrvcbrr59GqD_0Ak,350
102
+ auto_coder-0.1.180.dist-info/top_level.txt,sha256=Jqc0_uJSw2GwoFQAa9iJxYns-2mWla-9ok_Y3Gcznjk,10
103
+ auto_coder-0.1.180.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -2,6 +2,7 @@ import json
2
2
  import os
3
3
  import platform
4
4
  import time
5
+ import traceback
5
6
 
6
7
  from watchfiles import Change, DefaultFilter, awatch, watch
7
8
 
@@ -158,8 +159,7 @@ def process_file_local(file_path: str) -> List[SourceCode]:
158
159
  logger.info(f"Load file {file_path} in {time.time() - start_time}")
159
160
  return v
160
161
  except Exception as e:
161
- logger.error(f"Error processing file {file_path}: {str(e)}")
162
- import traceback
162
+ logger.error(f"Error processing file {file_path}: {str(e)}")
163
163
  traceback.print_exc()
164
164
  return []
165
165
 
@@ -13,6 +13,7 @@ from rich.console import Console
13
13
  from rich.panel import Panel
14
14
  from rich.table import Table
15
15
  import statistics
16
+ import traceback
16
17
 
17
18
  from autocoder.common import AutoCoderArgs, SourceCode
18
19
  from autocoder.rag.doc_filter import DocFilter
@@ -30,8 +31,9 @@ from tokenizers import Tokenizer
30
31
  from autocoder.rag.variable_holder import VariableHolder
31
32
 
32
33
  try:
33
- from autocoder_pro.rag.llm_compute import LLMComputeEngine
34
- except ImportError:
34
+ from autocoder_pro.rag.llm_compute import LLMComputeEngine
35
+ except ImportError:
36
+ logger.warning("Please install auto-coder-pro to enhance llm compute ability")
35
37
  LLMComputeEngine = None
36
38
 
37
39
 
@@ -287,8 +289,8 @@ class LongContextRAG:
287
289
  llm_config=llm_config,
288
290
  )
289
291
  except Exception as e:
290
- logger.error(f"Error in stream_chat_oai: {str(e)}")
291
- e.print_exc()
292
+ logger.error(f"Error in stream_chat_oai: {str(e)}")
293
+ traceback.print_exc()
292
294
  return ["出现错误,请稍后再试。"], []
293
295
 
294
296
  def _stream_chat_oai(
autocoder/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.179"
1
+ __version__ = "0.1.180"