alpiecode 0.7.0__tar.gz → 0.7.1__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.
- {alpiecode-0.7.0 → alpiecode-0.7.1}/PKG-INFO +1 -1
- {alpiecode-0.7.0 → alpiecode-0.7.1}/pyproject.toml +1 -1
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/alpiecode.egg-info/PKG-INFO +1 -1
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/config.py +1 -1
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/local_model.py +20 -13
- {alpiecode-0.7.0 → alpiecode-0.7.1}/README.md +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/setup.cfg +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/alpiecode.egg-info/SOURCES.txt +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/alpiecode.egg-info/dependency_links.txt +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/alpiecode.egg-info/entry_points.txt +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/alpiecode.egg-info/requires.txt +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/alpiecode.egg-info/top_level.txt +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/__init__.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/agent.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/cli.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/compaction.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/github.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/guardian.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/media.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/memory.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/tools.py +0 -0
- {alpiecode-0.7.0 → alpiecode-0.7.1}/src/codeagent/updater.py +0 -0
|
@@ -75,7 +75,7 @@ def get_shared_http_client():
|
|
|
75
75
|
import httpx
|
|
76
76
|
_SHARED_HTTP_CLIENT = httpx.Client(
|
|
77
77
|
http2=True,
|
|
78
|
-
timeout=httpx.Timeout(
|
|
78
|
+
timeout=httpx.Timeout(120.0, connect=5.0),
|
|
79
79
|
limits=httpx.Limits(max_keepalive_connections=20, max_connections=50),
|
|
80
80
|
)
|
|
81
81
|
return _SHARED_HTTP_CLIENT
|
|
@@ -242,30 +242,37 @@ def _ensure_llama_cpp():
|
|
|
242
242
|
else:
|
|
243
243
|
wheel_url = "https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.34-vulkan/llama_cpp_python-0.3.34-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl"
|
|
244
244
|
|
|
245
|
+
install_targets = [wheel_url, "llama-cpp-python"]
|
|
245
246
|
installed = False
|
|
246
247
|
last_error = ""
|
|
247
|
-
for
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
248
|
+
for target in install_targets:
|
|
249
|
+
for cmd_base in [
|
|
250
|
+
["uv", "pip", "install", target],
|
|
251
|
+
[sys.executable, "-m", "pip", "install", target],
|
|
252
|
+
]:
|
|
253
|
+
try:
|
|
254
|
+
res = subprocess.run(cmd_base, capture_output=True, text=True, timeout=180)
|
|
255
|
+
if res.returncode == 0:
|
|
256
|
+
installed = True
|
|
257
|
+
break
|
|
258
|
+
else:
|
|
259
|
+
last_error = res.stderr.strip() or res.stdout.strip()
|
|
260
|
+
except Exception as e:
|
|
261
|
+
last_error = str(e)
|
|
262
|
+
continue
|
|
263
|
+
if installed:
|
|
264
|
+
break
|
|
258
265
|
|
|
259
266
|
try:
|
|
260
267
|
from llama_cpp import Llama
|
|
261
268
|
print("✅ Pre-compiled local GGUF engine installed successfully!")
|
|
262
269
|
return Llama
|
|
263
270
|
except ImportError:
|
|
264
|
-
err_detail = f"\n Last error: {last_error[:
|
|
271
|
+
err_detail = f"\n Last error: {last_error[:300]}" if last_error else ""
|
|
265
272
|
raise RuntimeError(
|
|
266
273
|
"\n╭────────────────────────────────────────────────────────────╮\n"
|
|
267
274
|
"│ Failed to auto-install local GGUF engine. │\n"
|
|
268
|
-
"│
|
|
275
|
+
"│ Please check your internet connection for first setup. │\n"
|
|
269
276
|
"╰────────────────────────────────────────────────────────────╯"
|
|
270
277
|
f"{err_detail}"
|
|
271
278
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|