auto-coder 0.1.185__tar.gz → 0.1.188__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.185 → auto_coder-0.1.188}/PKG-INFO +2 -2
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/auto_coder.egg-info/PKG-INFO +2 -2
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/auto_coder.egg-info/requires.txt +1 -1
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/auto_coder_rag.py +11 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/__init__.py +2 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/long_context_rag.py +25 -1
- auto_coder-0.1.188/src/autocoder/version.py +1 -0
- auto_coder-0.1.185/src/autocoder/version.py +0 -1
- {auto_coder-0.1.185 → auto_coder-0.1.188}/LICENSE +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/README.md +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/setup.cfg +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/setup.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/auto_coder.egg-info/SOURCES.txt +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/auto_coder.egg-info/dependency_links.txt +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/auto_coder.egg-info/entry_points.txt +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/auto_coder.egg-info/top_level.txt +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/agent/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/agent/auto_tool.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/agent/coder.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/agent/designer.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/agent/planner.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/agent/project_reader.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/auto_coder.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/auto_coder_lang.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/auto_coder_server.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/chat/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/chat_auto_coder.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/chat_auto_coder_lang.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/command_args.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/JupyterClient.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/ShellClient.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/anything2images.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/audio.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/cleaner.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_execute.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_generate.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_generate_diff.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_generate_editblock.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_generate_strict_diff.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_merge.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_merge_diff.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_merge_strict_diff.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/command_completer.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/command_generator.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/command_templates.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/const.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/git_utils.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/image_to_page.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/interpreter.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/llm_rerank.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/screenshots.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/search.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/search_replace.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/text.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/common/types.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/db/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/db/store.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/actions/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/actions/action.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/actions/copilot.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/actions/plugins/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/actions/plugins/action_regex_project.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/dispacher/actions/plugins/action_translate.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/index/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/index/for_command.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/index/index.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/index/symbols_utils.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/lang.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/pyproject/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/api_server.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/cache/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/cache/base_cache.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/cache/byzer_storage_cache.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/cache/file_monitor_cache.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/cache/simple_cache.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/doc_filter.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/document_retriever.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/llm_wrapper.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/loaders/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/loaders/docx_loader.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/loaders/excel_loader.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/loaders/pdf_loader.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/loaders/ppt_loader.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/rag_config.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/rag_entry.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/raw_rag.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/relevant_utils.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/simple_directory_reader.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/simple_rag.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/token_checker.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/token_counter.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/token_limiter.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/types.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/utils.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/rag/variable_holder.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/regexproject/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/suffixproject/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/tsproject/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/__init__.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/conversation_store.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/llm_client_interceptors.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/log_capture.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/multi_turn.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/print_table.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/queue_communicate.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/request_event_queue.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/request_queue.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/rest.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/src/autocoder/utils/tests.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/tests/test_action_regex_project.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/tests/test_chat_auto_coder.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/tests/test_code_auto_merge_editblock.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/tests/test_command_completer.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/tests/test_planner.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/tests/test_queue_communicate.py +0 -0
- {auto_coder-0.1.185 → auto_coder-0.1.188}/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.188
|
|
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.138
|
|
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.188
|
|
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.138
|
|
30
30
|
Requires-Dist: patch
|
|
31
31
|
Requires-Dist: diff_match_patch
|
|
32
32
|
Requires-Dist: GitPython
|
|
@@ -256,6 +256,11 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
256
256
|
action="store_true",
|
|
257
257
|
help="Enable deep thought in inference mode",
|
|
258
258
|
)
|
|
259
|
+
serve_parser.add_argument(
|
|
260
|
+
"--inference_slow_without_deep_thought",
|
|
261
|
+
action="store_true",
|
|
262
|
+
help="Enable slow inference without deep thought",
|
|
263
|
+
)
|
|
259
264
|
|
|
260
265
|
serve_parser.add_argument(
|
|
261
266
|
"--enable_hybrid_index",
|
|
@@ -269,6 +274,12 @@ def main(input_args: Optional[List[str]] = None):
|
|
|
269
274
|
help="The maximum number of tokens in the output. This is only used when enable_hybrid_index is true.",
|
|
270
275
|
)
|
|
271
276
|
|
|
277
|
+
serve_parser.add_argument(
|
|
278
|
+
"--without_contexts",
|
|
279
|
+
action="store_true",
|
|
280
|
+
help="Whether to return responses without contexts. only works when pro plugin is installed",
|
|
281
|
+
)
|
|
282
|
+
|
|
272
283
|
# Tools command
|
|
273
284
|
tools_parser = subparsers.add_parser("tools", help="Various tools")
|
|
274
285
|
tools_subparsers = tools_parser.add_subparsers(dest="tool", help="Available tools")
|
|
@@ -316,6 +316,8 @@ class AutoCoderArgs(pydantic.BaseModel):
|
|
|
316
316
|
|
|
317
317
|
disable_inference_enhance: Optional[bool] = False
|
|
318
318
|
inference_deep_thought: Optional[bool] = False
|
|
319
|
+
inference_slow_without_deep_thought: Optional[bool] = False
|
|
320
|
+
without_contexts: Optional[bool] = False
|
|
319
321
|
|
|
320
322
|
class Config:
|
|
321
323
|
protected_namespaces = ()
|
|
@@ -343,6 +343,30 @@ class LongContextRAG:
|
|
|
343
343
|
)
|
|
344
344
|
return (chunk[0] for chunk in chunks), context
|
|
345
345
|
|
|
346
|
+
if self.args.without_contexts and LLMComputeEngine is not None:
|
|
347
|
+
llm_compute_engine = LLMComputeEngine(
|
|
348
|
+
llm=self.llm,
|
|
349
|
+
inference_enhance=not self.args.disable_inference_enhance,
|
|
350
|
+
inference_deep_thought=self.args.inference_deep_thought,
|
|
351
|
+
inference_slow_without_deep_thought=self.args.inference_slow_without_deep_thought
|
|
352
|
+
)
|
|
353
|
+
conversations = conversations[:-1]
|
|
354
|
+
new_conversations = llm_compute_engine.process_conversation(
|
|
355
|
+
conversations, query, []
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
return (
|
|
359
|
+
llm_compute_engine.stream_chat_oai(
|
|
360
|
+
conversations=new_conversations,
|
|
361
|
+
model=model,
|
|
362
|
+
role_mapping=role_mapping,
|
|
363
|
+
llm_config=llm_config,
|
|
364
|
+
delta_mode=True,
|
|
365
|
+
),
|
|
366
|
+
context,
|
|
367
|
+
)
|
|
368
|
+
|
|
369
|
+
|
|
346
370
|
only_contexts = False
|
|
347
371
|
try:
|
|
348
372
|
v = json.loads(query)
|
|
@@ -500,7 +524,7 @@ class LongContextRAG:
|
|
|
500
524
|
f"Start to send to model {target_model} with {request_tokens} tokens"
|
|
501
525
|
)
|
|
502
526
|
|
|
503
|
-
if LLMComputeEngine is not None:
|
|
527
|
+
if LLMComputeEngine is not None and not self.args.disable_inference_enhance:
|
|
504
528
|
llm_compute_engine = LLMComputeEngine(
|
|
505
529
|
llm=self.llm,
|
|
506
530
|
inference_enhance=not self.args.disable_inference_enhance,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.188"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.185"
|
|
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.185 → auto_coder-0.1.188}/src/autocoder/common/code_auto_generate_editblock.py
RENAMED
|
File without changes
|
{auto_coder-0.1.185 → auto_coder-0.1.188}/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.185 → auto_coder-0.1.188}/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
|
{auto_coder-0.1.185 → auto_coder-0.1.188}/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
|