auto-coder 0.1.206__tar.gz → 0.1.207__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 auto-coder might be problematic. Click here for more details.
- {auto_coder-0.1.206 → auto_coder-0.1.207}/PKG-INFO +1 -1
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/auto_coder.egg-info/PKG-INFO +1 -1
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/auto_coder_rag.py +5 -2
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/benchmark.py +50 -47
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/chat_auto_coder.py +8 -3
- auto_coder-0.1.207/src/autocoder/version.py +1 -0
- auto_coder-0.1.206/src/autocoder/version.py +0 -1
- {auto_coder-0.1.206 → auto_coder-0.1.207}/LICENSE +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/README.md +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/setup.cfg +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/setup.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/auto_coder.egg-info/SOURCES.txt +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/auto_coder.egg-info/dependency_links.txt +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/auto_coder.egg-info/entry_points.txt +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/auto_coder.egg-info/requires.txt +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/auto_coder.egg-info/top_level.txt +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/auto_filegroup.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/auto_tool.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/coder.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/designer.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/planner.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/agent/project_reader.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/auto_coder.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/auto_coder_lang.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/auto_coder_server.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/chat/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/chat_auto_coder_lang.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/command_args.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/JupyterClient.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/ShellClient.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/anything2images.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/audio.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/chunk_validation.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/cleaner.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_execute.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_generate.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_generate_diff.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_generate_editblock.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_generate_strict_diff.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_merge.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_merge_diff.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_merge_strict_diff.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/command_completer.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/command_generator.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/command_templates.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/const.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/git_utils.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/image_to_page.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/interpreter.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/llm_rerank.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/recall_validation.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/screenshots.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/search.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/search_replace.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/sys_prompt.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/text.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/types.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/data/tokenizer.json +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/db/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/db/store.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/action.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/copilot.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/plugins/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/plugins/action_regex_project.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/plugins/action_translate.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/index/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/index/for_command.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/index/index.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/index/symbols_utils.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/lang.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/pyproject/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/api_server.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/cache/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/cache/base_cache.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/cache/byzer_storage_cache.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/cache/file_monitor_cache.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/cache/simple_cache.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/doc_filter.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/document_retriever.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/llm_wrapper.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/loaders/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/loaders/docx_loader.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/loaders/excel_loader.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/loaders/pdf_loader.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/loaders/ppt_loader.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/long_context_rag.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/rag_config.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/rag_entry.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/raw_rag.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/relevant_utils.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/simple_directory_reader.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/simple_rag.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/stream_event/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/stream_event/event_writer.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/stream_event/types.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/token_checker.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/token_counter.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/token_limiter.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/types.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/utils.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/rag/variable_holder.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/regexproject/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/suffixproject/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/tsproject/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/__init__.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/_markitdown.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/conversation_store.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/llm_client_interceptors.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/log_capture.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/multi_turn.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/operate_config_api.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/print_table.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/queue_communicate.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/request_event_queue.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/request_queue.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/rest.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/utils/tests.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_action_regex_project.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_chat_auto_coder.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_command_completer.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_planner.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_queue_communicate.py +0 -0
- {auto_coder-0.1.206 → auto_coder-0.1.207}/tests/test_symbols_utils.py +0 -0
|
@@ -358,6 +358,9 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
358
358
|
benchmark_parser.add_argument(
|
|
359
359
|
"--base_url", default="", help="Base URL for OpenAI client"
|
|
360
360
|
)
|
|
361
|
+
benchmark_parser.add_argument(
|
|
362
|
+
"--query", default="Hello, how are you?", help="Query to use for benchmarking"
|
|
363
|
+
)
|
|
361
364
|
|
|
362
365
|
# Tools command
|
|
363
366
|
tools_parser = subparsers.add_parser("tools", help="Various tools")
|
|
@@ -413,11 +416,11 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
413
416
|
return
|
|
414
417
|
asyncio.run(
|
|
415
418
|
benchmark_openai(
|
|
416
|
-
args.model, args.parallel, args.api_key, args.base_url, args.rounds
|
|
419
|
+
args.model, args.parallel, args.api_key, args.base_url, args.rounds, args.query
|
|
417
420
|
)
|
|
418
421
|
)
|
|
419
422
|
else: # byzerllm
|
|
420
|
-
benchmark_byzerllm(args.model, args.parallel, args.rounds)
|
|
423
|
+
benchmark_byzerllm(args.model, args.parallel, args.rounds, args.query)
|
|
421
424
|
|
|
422
425
|
elif args.command == "serve":
|
|
423
426
|
if not args.quick:
|
|
@@ -9,16 +9,19 @@ from loguru import logger
|
|
|
9
9
|
import byzerllm
|
|
10
10
|
from concurrent.futures import ThreadPoolExecutor
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
async def benchmark_openai(
|
|
14
|
+
model: str, parallel: int, api_key: str, base_url: str = None, rounds: int = 1, query: str = "Hello, how are you?"
|
|
15
|
+
):
|
|
13
16
|
client = AsyncOpenAI(api_key=api_key, base_url=base_url if base_url else None)
|
|
14
17
|
start_time = time.time()
|
|
15
|
-
|
|
18
|
+
|
|
16
19
|
async def single_request():
|
|
17
20
|
try:
|
|
18
21
|
t1 = time.time()
|
|
19
22
|
response = await client.chat.completions.create(
|
|
20
23
|
model=model,
|
|
21
|
-
messages=[{"role": "user", "content":
|
|
24
|
+
messages=[{"role": "user", "content": query}],
|
|
22
25
|
)
|
|
23
26
|
t2 = time.time()
|
|
24
27
|
return t2 - t1
|
|
@@ -32,15 +35,15 @@ async def benchmark_openai(model: str, parallel: int, api_key: str, base_url: st
|
|
|
32
35
|
tasks = [single_request() for _ in range(parallel)]
|
|
33
36
|
results = await asyncio.gather(*tasks)
|
|
34
37
|
all_results.extend(results)
|
|
35
|
-
|
|
38
|
+
|
|
36
39
|
results = all_results
|
|
37
|
-
|
|
40
|
+
|
|
38
41
|
# Filter out None values from failed requests
|
|
39
42
|
results = [r for r in results if r is not None]
|
|
40
|
-
|
|
43
|
+
|
|
41
44
|
end_time = time.time()
|
|
42
45
|
total_time = end_time - start_time
|
|
43
|
-
|
|
46
|
+
|
|
44
47
|
if not results:
|
|
45
48
|
print("All requests failed")
|
|
46
49
|
return
|
|
@@ -51,14 +54,14 @@ async def benchmark_openai(model: str, parallel: int, api_key: str, base_url: st
|
|
|
51
54
|
p90 = np.percentile(results, 90)
|
|
52
55
|
p95 = np.percentile(results, 95)
|
|
53
56
|
p99 = np.percentile(results, 99)
|
|
54
|
-
|
|
57
|
+
|
|
55
58
|
# Create rich table for output
|
|
56
59
|
console = Console()
|
|
57
60
|
table = Table(title=f"OpenAI Client Benchmark Results (Parallel={parallel})")
|
|
58
|
-
|
|
61
|
+
|
|
59
62
|
table.add_column("Metric", style="cyan")
|
|
60
63
|
table.add_column("Value (seconds)", style="magenta")
|
|
61
|
-
|
|
64
|
+
|
|
62
65
|
table.add_row("Total Time", f"{total_time:.2f}")
|
|
63
66
|
table.add_row("Average Response Time", f"{avg_time:.2f}")
|
|
64
67
|
table.add_row("Median (P50)", f"{p50:.2f}")
|
|
@@ -66,21 +69,21 @@ async def benchmark_openai(model: str, parallel: int, api_key: str, base_url: st
|
|
|
66
69
|
table.add_row("P95", f"{p95:.2f}")
|
|
67
70
|
table.add_row("P99", f"{p99:.2f}")
|
|
68
71
|
table.add_row("Requests/Second", f"{parallel/total_time:.2f}")
|
|
69
|
-
|
|
72
|
+
|
|
70
73
|
console.print(table)
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
|
|
76
|
+
def benchmark_byzerllm(model: str, parallel: int, rounds: int = 1, query: str = "Hello, how are you?"):
|
|
73
77
|
byzerllm.connect_cluster(address="auto")
|
|
74
78
|
llm = byzerllm.ByzerLLM()
|
|
75
|
-
llm.setup_default_model_name(model)
|
|
79
|
+
llm.setup_default_model_name(model)
|
|
76
80
|
|
|
77
81
|
def single_request(llm):
|
|
78
82
|
try:
|
|
79
83
|
t1 = time.time()
|
|
80
|
-
llm.chat_oai(
|
|
81
|
-
"role": "user",
|
|
82
|
-
|
|
83
|
-
}])
|
|
84
|
+
llm.chat_oai(
|
|
85
|
+
conversations=[{"role": "user", "content": query}]
|
|
86
|
+
)
|
|
84
87
|
t2 = time.time()
|
|
85
88
|
return t2 - t1
|
|
86
89
|
except Exception as e:
|
|
@@ -97,39 +100,39 @@ def benchmark_byzerllm(model: str, parallel: int, rounds: int = 1):
|
|
|
97
100
|
# get results from futures
|
|
98
101
|
results = [future.result() for future in futures]
|
|
99
102
|
all_results.extend(results)
|
|
100
|
-
|
|
103
|
+
|
|
101
104
|
results = all_results
|
|
102
|
-
|
|
105
|
+
|
|
103
106
|
# Filter out None values from failed requests
|
|
104
107
|
results = [r for r in results if r is not None]
|
|
105
|
-
|
|
108
|
+
|
|
106
109
|
end_time = time.time()
|
|
107
110
|
total_time = end_time - start_time
|
|
108
111
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
112
|
+
if not results:
|
|
113
|
+
print("All requests failed")
|
|
114
|
+
return
|
|
115
|
+
|
|
116
|
+
# Calculate statistics
|
|
117
|
+
avg_time = np.mean(results)
|
|
118
|
+
p50 = np.percentile(results, 50)
|
|
119
|
+
p90 = np.percentile(results, 90)
|
|
120
|
+
p95 = np.percentile(results, 95)
|
|
121
|
+
p99 = np.percentile(results, 99)
|
|
122
|
+
|
|
123
|
+
# Create rich table for output
|
|
124
|
+
console = Console()
|
|
125
|
+
table = Table(title=f"ByzerLLM Client Benchmark Results (Parallel={parallel})")
|
|
126
|
+
|
|
127
|
+
table.add_column("Metric", style="cyan")
|
|
128
|
+
table.add_column("Value (seconds)", style="magenta")
|
|
129
|
+
|
|
130
|
+
table.add_row("Total Time", f"{total_time:.2f}")
|
|
131
|
+
table.add_row("Average Response Time", f"{avg_time:.2f}")
|
|
132
|
+
table.add_row("Median (P50)", f"{p50:.2f}")
|
|
133
|
+
table.add_row("P90", f"{p90:.2f}")
|
|
134
|
+
table.add_row("P95", f"{p95:.2f}")
|
|
135
|
+
table.add_row("P99", f"{p99:.2f}")
|
|
136
|
+
table.add_row("Requests/Second", f"{parallel/total_time:.2f}")
|
|
137
|
+
|
|
138
|
+
console.print(table)
|
|
@@ -1427,12 +1427,16 @@ def convert_yaml_to_config(yaml_file: str):
|
|
|
1427
1427
|
setattr(args, key, value)
|
|
1428
1428
|
return args
|
|
1429
1429
|
|
|
1430
|
-
def commit():
|
|
1430
|
+
def commit(query: str):
|
|
1431
1431
|
def prepare_commit_yaml():
|
|
1432
1432
|
auto_coder_main(["next", "chat_action"])
|
|
1433
1433
|
|
|
1434
1434
|
prepare_commit_yaml()
|
|
1435
1435
|
|
|
1436
|
+
# no_diff = query.strip().startswith("/no_diff")
|
|
1437
|
+
# if no_diff:
|
|
1438
|
+
# query = query.replace("/no_diff", "", 1).strip()
|
|
1439
|
+
|
|
1436
1440
|
latest_yaml_file = get_last_yaml_file("actions")
|
|
1437
1441
|
|
|
1438
1442
|
conf = memory.get("conf", {})
|
|
@@ -1472,7 +1476,7 @@ def commit():
|
|
|
1472
1476
|
os.remove(temp_yaml)
|
|
1473
1477
|
|
|
1474
1478
|
llm = byzerllm.ByzerLLM.from_default_model(args.code_model or args.model)
|
|
1475
|
-
uncommitted_changes = git_utils.get_uncommitted_changes(".")
|
|
1479
|
+
uncommitted_changes = git_utils.get_uncommitted_changes(".")
|
|
1476
1480
|
commit_message = git_utils.generate_commit_message.with_llm(
|
|
1477
1481
|
llm).run(uncommitted_changes)
|
|
1478
1482
|
memory["conversation"].append({"role": "user", "content": commit_message})
|
|
@@ -2305,7 +2309,8 @@ def main():
|
|
|
2305
2309
|
elif user_input.startswith("/revert"):
|
|
2306
2310
|
revert()
|
|
2307
2311
|
elif user_input.startswith("/commit"):
|
|
2308
|
-
commit()
|
|
2312
|
+
query = user_input[len("/commit"):].strip()
|
|
2313
|
+
commit(query)
|
|
2309
2314
|
elif user_input.startswith("/help"):
|
|
2310
2315
|
show_help()
|
|
2311
2316
|
elif user_input.startswith("/exclude_dirs"):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.207"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.206"
|
|
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
|
|
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
|
{auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_generate_editblock.py
RENAMED
|
File without changes
|
{auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_generate_strict_diff.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/common/code_auto_merge_strict_diff.py
RENAMED
|
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
|
{auto_coder-0.1.206 → auto_coder-0.1.207}/src/autocoder/dispacher/actions/plugins/__init__.py
RENAMED
|
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
|
|
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
|
|
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
|