auto-coder 0.1.229__tar.gz → 0.1.231__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.229 → auto_coder-0.1.231}/PKG-INFO +2 -2
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/auto_coder.egg-info/PKG-INFO +2 -2
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/auto_coder.egg-info/SOURCES.txt +2 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/auto_coder.egg-info/requires.txt +1 -1
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/auto_coder.py +35 -17
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/chat_auto_coder.py +12 -22
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/models.py +4 -1
- auto_coder-0.1.231/src/autocoder/utils/chat_auto_coder_utils/__init__.py +0 -0
- auto_coder-0.1.231/src/autocoder/utils/llms.py +52 -0
- auto_coder-0.1.231/src/autocoder/version.py +1 -0
- auto_coder-0.1.229/src/autocoder/version.py +0 -1
- {auto_coder-0.1.229 → auto_coder-0.1.231}/LICENSE +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/README.md +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/setup.cfg +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/setup.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/auto_coder.egg-info/dependency_links.txt +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/auto_coder.egg-info/entry_points.txt +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/auto_coder.egg-info/top_level.txt +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/auto_demand_organizer.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/auto_filegroup.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/auto_guess_query.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/auto_tool.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/coder.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/designer.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/planner.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/agent/project_reader.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/auto_coder_lang.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/auto_coder_rag.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/auto_coder_rag_client_mcp.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/auto_coder_rag_mcp.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/auto_coder_server.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/benchmark.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/chat/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/chat_auto_coder_lang.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/command_args.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/JupyterClient.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/ShellClient.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/anything2images.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/anything2img.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/audio.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/buildin_tokenizer.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/chunk_validation.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/cleaner.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_execute.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_generate.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_generate_diff.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_generate_editblock.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_generate_strict_diff.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_merge.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_merge_diff.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_merge_strict_diff.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_modification_ranker.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/command_completer.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/command_generator.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/command_templates.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/const.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/files.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/git_utils.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/image_to_page.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/interpreter.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/llm_rerank.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/mcp_hub.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/mcp_server.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/mcp_servers/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/mcp_servers/mcp_server_perplexity.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/mcp_tools.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/memory_manager.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/recall_validation.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/screenshots.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/search.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/search_replace.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/sys_prompt.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/text.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/types.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/utils_code_auto_generate.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/data/tokenizer.json +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/db/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/db/store.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/actions/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/actions/action.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/actions/copilot.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/actions/plugins/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/actions/plugins/action_regex_project.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/dispacher/actions/plugins/action_translate.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/index/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/index/for_command.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/index/index.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/index/symbols_utils.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/index/types.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/lang.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/pyproject/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/api_server.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/cache/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/cache/base_cache.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/cache/byzer_storage_cache.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/cache/file_monitor_cache.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/cache/simple_cache.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/doc_filter.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/document_retriever.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/llm_wrapper.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/loaders/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/loaders/docx_loader.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/loaders/excel_loader.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/loaders/pdf_loader.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/loaders/ppt_loader.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/long_context_rag.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/rag_config.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/rag_entry.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/raw_rag.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/relevant_utils.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/simple_directory_reader.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/simple_rag.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/stream_event/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/stream_event/event_writer.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/stream_event/types.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/token_checker.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/token_counter.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/token_limiter.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/types.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/utils.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/rag/variable_holder.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/regexproject/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/suffixproject/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/tsproject/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/_markitdown.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/auto_coder_utils/__init__.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/auto_coder_utils/chat_stream_out.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/conversation_store.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/llm_client_interceptors.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/log_capture.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/multi_turn.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/operate_config_api.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/print_table.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/queue_communicate.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/request_event_queue.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/request_queue.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/rest.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/tests.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_action_regex_project.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_chat_auto_coder.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_command_completer.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_planner.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_queue_communicate.py +0 -0
- {auto_coder-0.1.229 → auto_coder-0.1.231}/tests/test_symbols_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: auto-coder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.231
|
|
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.
|
|
29
|
+
Requires-Dist: byzerllm[saas]>=0.1.151
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: auto-coder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.231
|
|
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.
|
|
29
|
+
Requires-Dist: byzerllm[saas]>=0.1.151
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -127,6 +127,7 @@ src/autocoder/utils/__init__.py
|
|
|
127
127
|
src/autocoder/utils/_markitdown.py
|
|
128
128
|
src/autocoder/utils/conversation_store.py
|
|
129
129
|
src/autocoder/utils/llm_client_interceptors.py
|
|
130
|
+
src/autocoder/utils/llms.py
|
|
130
131
|
src/autocoder/utils/log_capture.py
|
|
131
132
|
src/autocoder/utils/multi_turn.py
|
|
132
133
|
src/autocoder/utils/operate_config_api.py
|
|
@@ -138,6 +139,7 @@ src/autocoder/utils/rest.py
|
|
|
138
139
|
src/autocoder/utils/tests.py
|
|
139
140
|
src/autocoder/utils/auto_coder_utils/__init__.py
|
|
140
141
|
src/autocoder/utils/auto_coder_utils/chat_stream_out.py
|
|
142
|
+
src/autocoder/utils/chat_auto_coder_utils/__init__.py
|
|
141
143
|
tests/test_action_regex_project.py
|
|
142
144
|
tests/test_chat_auto_coder.py
|
|
143
145
|
tests/test_code_auto_merge_editblock.py
|
|
@@ -280,6 +280,7 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
280
280
|
byzerllm.connect_cluster(address=args.ray_address)
|
|
281
281
|
|
|
282
282
|
llm = byzerllm.ByzerLLM(verbose=args.print_request)
|
|
283
|
+
|
|
283
284
|
if args.product_mode == "lite":
|
|
284
285
|
llm = byzerllm.SimpleByzerLLM(default_model_name="deepseek_chat")
|
|
285
286
|
api_key_dir = os.path.expanduser("~/.auto-coder/keys")
|
|
@@ -298,7 +299,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
298
299
|
infer_params={
|
|
299
300
|
"saas.base_url": "https://api.deepseek.com/v1",
|
|
300
301
|
"saas.api_key": api_key,
|
|
301
|
-
"saas.model": "deepseek-chat"
|
|
302
|
+
"saas.model": "deepseek-chat",
|
|
303
|
+
"saas.is_reasoning": False
|
|
302
304
|
}
|
|
303
305
|
)
|
|
304
306
|
|
|
@@ -310,7 +312,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
310
312
|
infer_params={
|
|
311
313
|
"saas.base_url": "https://api.deepseek.com/v1",
|
|
312
314
|
"saas.api_key": api_key,
|
|
313
|
-
"saas.model": "deepseek-chat"
|
|
315
|
+
"saas.model": "deepseek-chat",
|
|
316
|
+
"saas.is_reasoning": False
|
|
314
317
|
}
|
|
315
318
|
)
|
|
316
319
|
|
|
@@ -322,7 +325,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
322
325
|
infer_params={
|
|
323
326
|
"saas.base_url": "https://api.deepseek.com/v1",
|
|
324
327
|
"saas.api_key": api_key,
|
|
325
|
-
"saas.model": "deepseek-reasoner"
|
|
328
|
+
"saas.model": "deepseek-reasoner",
|
|
329
|
+
"saas.is_reasoning": True
|
|
326
330
|
}
|
|
327
331
|
)
|
|
328
332
|
|
|
@@ -334,7 +338,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
334
338
|
infer_params={
|
|
335
339
|
"saas.base_url": "https://api.deepseek.com/v1",
|
|
336
340
|
"saas.api_key": api_key,
|
|
337
|
-
"saas.model": "deepseek-reasoner"
|
|
341
|
+
"saas.model": "deepseek-reasoner",
|
|
342
|
+
"saas.is_reasoning": True
|
|
338
343
|
}
|
|
339
344
|
)
|
|
340
345
|
|
|
@@ -360,7 +365,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
360
365
|
infer_params={
|
|
361
366
|
"saas.base_url": model_info["base_url"],
|
|
362
367
|
"saas.api_key": model_info["api_key"],
|
|
363
|
-
"saas.model": model_info["model_name"]
|
|
368
|
+
"saas.model": model_info["model_name"],
|
|
369
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
364
370
|
}
|
|
365
371
|
)
|
|
366
372
|
models.append(code_model)
|
|
@@ -377,7 +383,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
377
383
|
infer_params={
|
|
378
384
|
"saas.base_url": model_info["base_url"],
|
|
379
385
|
"saas.api_key": model_info["api_key"],
|
|
380
|
-
"saas.model": model_info["model_name"]
|
|
386
|
+
"saas.model": model_info["model_name"],
|
|
387
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
381
388
|
}
|
|
382
389
|
)
|
|
383
390
|
llm.setup_sub_client("code_model", code_model)
|
|
@@ -397,7 +404,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
397
404
|
infer_params={
|
|
398
405
|
"saas.base_url": model_info["base_url"],
|
|
399
406
|
"saas.api_key": model_info["api_key"],
|
|
400
|
-
"saas.model": model_info["model_name"]
|
|
407
|
+
"saas.model": model_info["model_name"],
|
|
408
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
401
409
|
}
|
|
402
410
|
)
|
|
403
411
|
models.append(rerank_model)
|
|
@@ -414,7 +422,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
414
422
|
infer_params={
|
|
415
423
|
"saas.base_url": model_info["base_url"],
|
|
416
424
|
"saas.api_key": model_info["api_key"],
|
|
417
|
-
"saas.model": model_info["model_name"]
|
|
425
|
+
"saas.model": model_info["model_name"],
|
|
426
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
418
427
|
}
|
|
419
428
|
)
|
|
420
429
|
llm.setup_sub_client("generate_rerank_model", rerank_model)
|
|
@@ -430,7 +439,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
430
439
|
infer_params={
|
|
431
440
|
"saas.base_url": model_info["base_url"],
|
|
432
441
|
"saas.api_key": model_info["api_key"],
|
|
433
|
-
"saas.model": model_info["model_name"]
|
|
442
|
+
"saas.model": model_info["model_name"],
|
|
443
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
434
444
|
}
|
|
435
445
|
)
|
|
436
446
|
llm.setup_sub_client("inference_model", inference_model)
|
|
@@ -610,7 +620,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
610
620
|
infer_params={
|
|
611
621
|
"saas.base_url": model_info["base_url"],
|
|
612
622
|
"saas.api_key": model_info["api_key"],
|
|
613
|
-
"saas.model": model_info["model_name"]
|
|
623
|
+
"saas.model": model_info["model_name"],
|
|
624
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
614
625
|
}
|
|
615
626
|
)
|
|
616
627
|
llm.setup_sub_client("chat_model", chat_model)
|
|
@@ -626,7 +637,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
626
637
|
infer_params={
|
|
627
638
|
"saas.base_url": model_info["base_url"],
|
|
628
639
|
"saas.api_key": model_info["api_key"],
|
|
629
|
-
"saas.model": model_info["model_name"]
|
|
640
|
+
"saas.model": model_info["model_name"],
|
|
641
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
630
642
|
}
|
|
631
643
|
)
|
|
632
644
|
llm.setup_sub_client("vl_model", vl_model)
|
|
@@ -642,7 +654,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
642
654
|
infer_params={
|
|
643
655
|
"saas.base_url": model_info["base_url"],
|
|
644
656
|
"saas.api_key": model_info["api_key"],
|
|
645
|
-
"saas.model": model_info["model_name"]
|
|
657
|
+
"saas.model": model_info["model_name"],
|
|
658
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
646
659
|
}
|
|
647
660
|
)
|
|
648
661
|
llm.setup_sub_client("sd_model", sd_model)
|
|
@@ -658,7 +671,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
658
671
|
infer_params={
|
|
659
672
|
"saas.base_url": model_info["base_url"],
|
|
660
673
|
"saas.api_key": model_info["api_key"],
|
|
661
|
-
"saas.model": model_info["model_name"]
|
|
674
|
+
"saas.model": model_info["model_name"],
|
|
675
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
662
676
|
}
|
|
663
677
|
)
|
|
664
678
|
llm.setup_sub_client("text2voice_model", text2voice_model)
|
|
@@ -674,7 +688,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
674
688
|
infer_params={
|
|
675
689
|
"saas.base_url": model_info["base_url"],
|
|
676
690
|
"saas.api_key": model_info["api_key"],
|
|
677
|
-
"saas.model": model_info["model_name"]
|
|
691
|
+
"saas.model": model_info["model_name"],
|
|
692
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
678
693
|
}
|
|
679
694
|
)
|
|
680
695
|
llm.setup_sub_client("voice2text_model", voice2text_model)
|
|
@@ -690,7 +705,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
690
705
|
infer_params={
|
|
691
706
|
"saas.base_url": model_info["base_url"],
|
|
692
707
|
"saas.api_key": model_info["api_key"],
|
|
693
|
-
"saas.model": model_info["model_name"]
|
|
708
|
+
"saas.model": model_info["model_name"],
|
|
709
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
694
710
|
}
|
|
695
711
|
)
|
|
696
712
|
llm.setup_sub_client("planner_model", planner_model)
|
|
@@ -706,7 +722,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
706
722
|
infer_params={
|
|
707
723
|
"saas.base_url": model_info["base_url"],
|
|
708
724
|
"saas.api_key": model_info["api_key"],
|
|
709
|
-
"saas.model": model_info["model_name"]
|
|
725
|
+
"saas.model": model_info["model_name"],
|
|
726
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
710
727
|
}
|
|
711
728
|
)
|
|
712
729
|
llm.setup_sub_client("designer_model", designer_model)
|
|
@@ -722,7 +739,8 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
722
739
|
infer_params={
|
|
723
740
|
"saas.base_url": model_info["base_url"],
|
|
724
741
|
"saas.api_key": model_info["api_key"],
|
|
725
|
-
"saas.model": model_info["model_name"]
|
|
742
|
+
"saas.model": model_info["model_name"],
|
|
743
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
726
744
|
}
|
|
727
745
|
)
|
|
728
746
|
llm.setup_sub_client("emb_model", emb_model)
|
|
@@ -51,7 +51,7 @@ from byzerllm.utils import format_str_jinja2
|
|
|
51
51
|
from autocoder.common.memory_manager import get_global_memory_file_paths
|
|
52
52
|
from autocoder import models
|
|
53
53
|
import shlex
|
|
54
|
-
|
|
54
|
+
from autocoder.utils.llms import get_single_llm
|
|
55
55
|
|
|
56
56
|
class SymbolItem(BaseModel):
|
|
57
57
|
symbol_name: str
|
|
@@ -1316,6 +1316,9 @@ def ask(query: str):
|
|
|
1316
1316
|
if "code_model" in conf:
|
|
1317
1317
|
yaml_config["code_model"] = conf["code_model"]
|
|
1318
1318
|
|
|
1319
|
+
if "product_mode" in conf:
|
|
1320
|
+
yaml_config["product_mode"] = conf["product_mode"]
|
|
1321
|
+
|
|
1319
1322
|
yaml_content = convert_yaml_config_to_str(yaml_config=yaml_config)
|
|
1320
1323
|
|
|
1321
1324
|
execute_file = os.path.join("actions", f"{uuid.uuid4()}.yml")
|
|
@@ -1589,18 +1592,9 @@ def code_next(query: str):
|
|
|
1589
1592
|
)
|
|
1590
1593
|
|
|
1591
1594
|
|
|
1592
|
-
def get_single_llm(model_names: str):
|
|
1593
|
-
if "," in model_names:
|
|
1594
|
-
# Multiple code models specified
|
|
1595
|
-
model_names = model_names.split(",")
|
|
1596
|
-
for _, model_name in enumerate(model_names):
|
|
1597
|
-
return byzerllm.ByzerLLM.from_default_model(model_name)
|
|
1598
|
-
else:
|
|
1599
|
-
# Single code model
|
|
1600
|
-
return byzerllm.ByzerLLM.from_default_model(model_names)
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
1595
|
def commit(query: str):
|
|
1596
|
+
conf = memory.get("conf", {})
|
|
1597
|
+
product_mode = conf.get("product_mode", "lite")
|
|
1604
1598
|
def prepare_commit_yaml():
|
|
1605
1599
|
auto_coder_main(["next", "chat_action"])
|
|
1606
1600
|
|
|
@@ -1652,7 +1646,7 @@ def commit(query: str):
|
|
|
1652
1646
|
if os.path.exists(temp_yaml):
|
|
1653
1647
|
os.remove(temp_yaml)
|
|
1654
1648
|
|
|
1655
|
-
llm = get_single_llm(args.code_model or args.model)
|
|
1649
|
+
llm = get_single_llm(args.code_model or args.model, product_mode)
|
|
1656
1650
|
uncommitted_changes = git_utils.get_uncommitted_changes(".")
|
|
1657
1651
|
commit_message = git_utils.generate_commit_message.with_llm(llm).run(
|
|
1658
1652
|
uncommitted_changes
|
|
@@ -1672,6 +1666,8 @@ def commit(query: str):
|
|
|
1672
1666
|
)
|
|
1673
1667
|
git_utils.print_commit_info(commit_result=commit_result)
|
|
1674
1668
|
except Exception as e:
|
|
1669
|
+
import traceback
|
|
1670
|
+
traceback.print_exc()
|
|
1675
1671
|
print(f"Failed to commit: {e}")
|
|
1676
1672
|
if execute_file:
|
|
1677
1673
|
os.remove(execute_file)
|
|
@@ -1949,6 +1945,9 @@ def summon(query: str):
|
|
|
1949
1945
|
if "model" in conf:
|
|
1950
1946
|
yaml_config["model"] = conf["model"]
|
|
1951
1947
|
|
|
1948
|
+
if "product_mode" in conf:
|
|
1949
|
+
yaml_config["product_mode"] = conf["product_mode"]
|
|
1950
|
+
|
|
1952
1951
|
yaml_content = convert_yaml_config_to_str(yaml_config=yaml_config)
|
|
1953
1952
|
|
|
1954
1953
|
execute_file = os.path.join("actions", f"{uuid.uuid4()}.yml")
|
|
@@ -2477,9 +2476,6 @@ def lib_command(args: List[str]):
|
|
|
2477
2476
|
else:
|
|
2478
2477
|
console.print(f"Unknown subcommand: {subcommand}")
|
|
2479
2478
|
|
|
2480
|
-
def agent(query: str):
|
|
2481
|
-
console.print(f"Agent query: {query}")
|
|
2482
|
-
|
|
2483
2479
|
|
|
2484
2480
|
def main():
|
|
2485
2481
|
ARGS = parse_arguments()
|
|
@@ -2655,12 +2651,6 @@ def main():
|
|
|
2655
2651
|
print("Please enter your query.")
|
|
2656
2652
|
else:
|
|
2657
2653
|
manage_models(ARGS,query)
|
|
2658
|
-
elif user_input.startswith("/agent"):
|
|
2659
|
-
query = user_input[len("/agent"):].strip()
|
|
2660
|
-
if not query:
|
|
2661
|
-
print("Please enter your query.")
|
|
2662
|
-
else:
|
|
2663
|
-
agent(query)
|
|
2664
2654
|
|
|
2665
2655
|
elif user_input.startswith("/mode"):
|
|
2666
2656
|
conf = user_input[len("/mode"):].strip()
|
|
@@ -32,7 +32,7 @@ default_models_list = [
|
|
|
32
32
|
"model_type": "saas/openai",
|
|
33
33
|
"base_url": "https://api.openai.com/v1",
|
|
34
34
|
"api_key_path": "",
|
|
35
|
-
"is_reasoning":
|
|
35
|
+
"is_reasoning": True
|
|
36
36
|
}
|
|
37
37
|
]
|
|
38
38
|
|
|
@@ -54,9 +54,12 @@ def load_models() -> List[Dict]:
|
|
|
54
54
|
custom_models = json.load(f)
|
|
55
55
|
# Custom models will override defaults with same name
|
|
56
56
|
for model in custom_models:
|
|
57
|
+
model["is_reasoning"] = model.get("is_reasoning", False)
|
|
57
58
|
models_dict[model["name"]] = model
|
|
59
|
+
|
|
58
60
|
except json.JSONDecodeError:
|
|
59
61
|
# If JSON is invalid, just use defaults
|
|
62
|
+
print("JSON is invalid, using defaults")
|
|
60
63
|
save_models(default_models_list)
|
|
61
64
|
else:
|
|
62
65
|
# If file doesn't exist, create it with defaults
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import byzerllm
|
|
2
|
+
from autocoder.auto_coder import models_module
|
|
3
|
+
|
|
4
|
+
def get_single_llm(model_names: str, product_mode: str):
|
|
5
|
+
if product_mode == "pro":
|
|
6
|
+
if "," in model_names:
|
|
7
|
+
# Multiple code models specified
|
|
8
|
+
model_names = model_names.split(",")
|
|
9
|
+
for _, model_name in enumerate(model_names):
|
|
10
|
+
return byzerllm.ByzerLLM.from_default_model(model_name)
|
|
11
|
+
else:
|
|
12
|
+
# Single code model
|
|
13
|
+
return byzerllm.ByzerLLM.from_default_model(model_names)
|
|
14
|
+
|
|
15
|
+
if product_mode == "lite":
|
|
16
|
+
if "," in model_names:
|
|
17
|
+
# Multiple code models specified
|
|
18
|
+
model_names = model_names.split(",")
|
|
19
|
+
for _, model_name in enumerate(model_names):
|
|
20
|
+
model_name = model_name.strip()
|
|
21
|
+
model_info = models_module.get_model_by_name(model_name)
|
|
22
|
+
target_llm = byzerllm.SimpleByzerLLM(default_model_name=model_name)
|
|
23
|
+
target_llm.deploy(
|
|
24
|
+
model_path="",
|
|
25
|
+
pretrained_model_type=model_info["model_type"],
|
|
26
|
+
udf_name=model_name,
|
|
27
|
+
infer_params={
|
|
28
|
+
"saas.base_url": model_info["base_url"],
|
|
29
|
+
"saas.api_key": model_info["api_key"],
|
|
30
|
+
"saas.model": model_info["model_name"],
|
|
31
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
return target_llm
|
|
35
|
+
|
|
36
|
+
else:
|
|
37
|
+
# Single code model
|
|
38
|
+
model_info = models_module.get_model_by_name(model_names)
|
|
39
|
+
model_name = model_names
|
|
40
|
+
target_llm = byzerllm.SimpleByzerLLM(default_model_name=model_name)
|
|
41
|
+
target_llm.deploy(
|
|
42
|
+
model_path="",
|
|
43
|
+
pretrained_model_type=model_info["model_type"],
|
|
44
|
+
udf_name=model_name,
|
|
45
|
+
infer_params={
|
|
46
|
+
"saas.base_url": model_info["base_url"],
|
|
47
|
+
"saas.api_key": model_info["api_key"],
|
|
48
|
+
"saas.model": model_info["model_name"],
|
|
49
|
+
"saas.is_reasoning": model_info["is_reasoning"]
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
return target_llm
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.231"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.229"
|
|
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
|
{auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/code_auto_generate_editblock.py
RENAMED
|
File without changes
|
{auto_coder-0.1.229 → auto_coder-0.1.231}/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.229 → auto_coder-0.1.231}/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
|
{auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/common/mcp_servers/mcp_server_perplexity.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
|
{auto_coder-0.1.229 → auto_coder-0.1.231}/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
|
{auto_coder-0.1.229 → auto_coder-0.1.231}/src/autocoder/utils/auto_coder_utils/chat_stream_out.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
|