auto-coder-web 0.1.111__py3-none-any.whl → 0.1.115__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.
- auto_coder_web/common_router/model_router.py +16 -7
- auto_coder_web/routers/rules_router.py +3 -15
- auto_coder_web/version.py +1 -1
- auto_coder_web/web/assets/main.js +29 -29
- {auto_coder_web-0.1.111.dist-info → auto_coder_web-0.1.115.dist-info}/METADATA +3 -3
- {auto_coder_web-0.1.111.dist-info → auto_coder_web-0.1.115.dist-info}/RECORD +9 -9
- {auto_coder_web-0.1.111.dist-info → auto_coder_web-0.1.115.dist-info}/WHEEL +0 -0
- {auto_coder_web-0.1.111.dist-info → auto_coder_web-0.1.115.dist-info}/entry_points.txt +0 -0
- {auto_coder_web-0.1.111.dist-info → auto_coder_web-0.1.115.dist-info}/top_level.txt +0 -0
@@ -280,20 +280,29 @@ def load_providers() -> List[Dict]:
|
|
280
280
|
"output_price": 555.0,
|
281
281
|
"is_reasoning": False,
|
282
282
|
"max_output_tokens": 8096*4
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"id": "deepseek/deepseek-r1-0528",
|
286
|
+
"name": "deepseek-r1-0528",
|
287
|
+
"input_price": 4.0,
|
288
|
+
"output_price": 16.0,
|
289
|
+
"is_reasoning": True,
|
290
|
+
"max_output_tokens": 8096*2
|
283
291
|
}
|
284
292
|
]
|
285
293
|
},
|
286
294
|
{
|
287
295
|
"name": "google",
|
288
|
-
"base_url": "
|
289
|
-
"model_type": "saas/
|
296
|
+
"base_url": "https://generativelanguage.googleapis.com/v1beta/openai/",
|
297
|
+
"model_type": "saas/openai",
|
290
298
|
"models": [
|
291
299
|
{
|
292
|
-
"id": "gemini-2.5-pro-
|
293
|
-
"name": "gemini-2.5-pro-
|
294
|
-
"input_price":
|
295
|
-
"output_price": 0,
|
296
|
-
"is_reasoning":
|
300
|
+
"id": "gemini-2.5-pro-preview-05-06",
|
301
|
+
"name": "gemini-2.5-pro-preview-05-06",
|
302
|
+
"input_price": 8.8,
|
303
|
+
"output_price": 77.0,
|
304
|
+
"is_reasoning": False,
|
305
|
+
"max_output_tokens": 8096*4
|
297
306
|
}
|
298
307
|
]
|
299
308
|
}
|
@@ -299,13 +299,7 @@ async def analyze_rules(
|
|
299
299
|
# Using a placeholder or assuming indexer provides files for now.
|
300
300
|
# Let's try fetching from memory first, might be empty in web context.
|
301
301
|
memory = get_memory() # Get memory specific to project
|
302
|
-
files = memory.get("current_files", {}).get("files", [])
|
303
|
-
|
304
|
-
if not files:
|
305
|
-
# If no files in memory, maybe analyze all project files? Or require explicit list?
|
306
|
-
# For now, report error if no files are targeted.
|
307
|
-
raise ValueError("No active files found in memory for analysis. Specify files or use a different mechanism.")
|
308
|
-
|
302
|
+
files = memory.get("current_files", {}).get("files", [])
|
309
303
|
|
310
304
|
sources = SourceCodeList([])
|
311
305
|
event_manager.write_event(EventContentCreator.create_message(f"Reading {len(files)} files for analysis...").to_dict())
|
@@ -622,10 +616,7 @@ async def get_context_prompt(
|
|
622
616
|
|
623
617
|
# 获取内存中的文件
|
624
618
|
memory = get_memory()
|
625
|
-
files = memory.get("current_files", {}).get("files", [])
|
626
|
-
|
627
|
-
if not files:
|
628
|
-
raise HTTPException(status_code=400, detail="没有找到活跃的文件,请指定文件或使用其他机制")
|
619
|
+
files = memory.get("current_files", {}).get("files", [])
|
629
620
|
|
630
621
|
sources = SourceCodeList([])
|
631
622
|
for file in files:
|
@@ -639,10 +630,7 @@ async def get_context_prompt(
|
|
639
630
|
sources.sources.append(SourceCode(module_name=file, source_code=source_code))
|
640
631
|
except Exception as e:
|
641
632
|
logger.error(f"读取文件 {file_abs_path} 错误: {e}")
|
642
|
-
continue
|
643
|
-
|
644
|
-
if not sources.sources:
|
645
|
-
raise HTTPException(status_code=400, detail="没有有效的源文件可以分析")
|
633
|
+
continue
|
646
634
|
|
647
635
|
# 生成分析提示文本
|
648
636
|
prompt_text = auto_learn.analyze_modules.prompt(sources=sources, query=request_data.query)
|
auto_coder_web/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.115"
|