ErrorAI 1.7.0__tar.gz → 1.9.0__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.
- {errorai-1.7.0 → errorai-1.9.0}/ErrorAI.egg-info/PKG-INFO +1 -1
- {errorai-1.7.0 → errorai-1.9.0}/PKG-INFO +1 -1
- {errorai-1.7.0 → errorai-1.9.0}/errorai/runtime.py +14 -3
- {errorai-1.7.0 → errorai-1.9.0}/pyproject.toml +1 -1
- {errorai-1.7.0 → errorai-1.9.0}/ErrorAI.egg-info/SOURCES.txt +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/ErrorAI.egg-info/dependency_links.txt +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/ErrorAI.egg-info/entry_points.txt +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/ErrorAI.egg-info/requires.txt +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/ErrorAI.egg-info/top_level.txt +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/README.md +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/__init__.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/__main__.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/bootstrap.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/cli.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/compat.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/config.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/environment.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/pipeline.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/providers.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/errorai/universal.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/setup.cfg +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/tests/test_bootstrap.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/tests/test_config.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/tests/test_runtime.py +0 -0
- {errorai-1.7.0 → errorai-1.9.0}/tests/test_safety.py +0 -0
|
@@ -13,7 +13,7 @@ from .bootstrap import BootstrapStatus, ensure_model, model_status
|
|
|
13
13
|
from .config import ErrorAIConfig, autostart_enabled, load_config
|
|
14
14
|
from .environment import Capabilities, detect_capabilities
|
|
15
15
|
from .pipeline import Analyzer, Applier, Planner, Reporter, Watcher
|
|
16
|
-
from .providers import ModelProvider, RulesOnlyProvider
|
|
16
|
+
from .providers import ModelProvider, RulesOnlyProvider, HttpApiProvider
|
|
17
17
|
|
|
18
18
|
try:
|
|
19
19
|
from .providers import LlamaCppProvider
|
|
@@ -67,7 +67,12 @@ class RuntimeManager:
|
|
|
67
67
|
self.reporter = Reporter(self.config.runtime.project_root)
|
|
68
68
|
self.analyzer = Analyzer()
|
|
69
69
|
self.applier = Applier(self.config.runtime)
|
|
70
|
-
|
|
70
|
+
if self.config.model.provider in ("onnx", "llama_cpp"):
|
|
71
|
+
self.bootstrap_status = ensure_model(self.config.model, explicit=False)
|
|
72
|
+
else:
|
|
73
|
+
self.bootstrap_status = BootstrapStatus(
|
|
74
|
+
True, "remote", "Using remote HTTP API provider; no local model needed.", None
|
|
75
|
+
)
|
|
71
76
|
self.provider = self._select_provider(self.bootstrap_status)
|
|
72
77
|
self.planner = Planner(self.provider)
|
|
73
78
|
self.watcher = Watcher(self.capabilities, self.reporter)
|
|
@@ -91,11 +96,17 @@ class RuntimeManager:
|
|
|
91
96
|
return self
|
|
92
97
|
|
|
93
98
|
def _select_provider(self, status: BootstrapStatus) -> ModelProvider:
|
|
94
|
-
if
|
|
99
|
+
if self.config is None:
|
|
95
100
|
return RulesOnlyProvider()
|
|
96
101
|
|
|
97
102
|
provider_name = self.config.model.provider
|
|
98
103
|
|
|
104
|
+
if provider_name == "http_api":
|
|
105
|
+
return HttpApiProvider(self.config.model)
|
|
106
|
+
|
|
107
|
+
if not status.ready or status.model_path is None:
|
|
108
|
+
return RulesOnlyProvider()
|
|
109
|
+
|
|
99
110
|
if provider_name == "onnx":
|
|
100
111
|
if OnnxProvider is None:
|
|
101
112
|
return RulesOnlyProvider()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|