Stop stacking Ollama -cpu embed tags and verify Assistent Sqlite after seed.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,9 +30,13 @@ for root in roots:
|
||||
for p in sorted(root.iterdir()):
|
||||
if "assistent" not in p.name.lower():
|
||||
continue
|
||||
dll_dir = p / "bin" / "Debug" / "net8.0"
|
||||
dll = dll_dir / "SwarmAssistentExtension.dll"
|
||||
sqlite_dll = dll_dir / "Microsoft.Data.Sqlite.dll"
|
||||
dlls = sorted(p.glob("bin/**/SwarmAssistentExtension.dll"))
|
||||
if not dlls:
|
||||
# Older layout / alternate assembly name
|
||||
dlls = sorted(p.glob("bin/**/*Assistent*.dll"))
|
||||
dll = dlls[0] if dlls else None
|
||||
dll_dir = dll.parent if dll else None
|
||||
sqlite_dll = (dll_dir / "Microsoft.Data.Sqlite.dll") if dll_dir else None
|
||||
csproj = next(p.glob("*.csproj"), None)
|
||||
tab = p / "Tabs" / "Text2Image" / "Assistent.html"
|
||||
bundle = p / "Assets" / "assistent.bundle.js"
|
||||
@@ -49,10 +53,11 @@ for root in roots:
|
||||
"path": str(p),
|
||||
"name": p.name,
|
||||
"csproj": str(csproj) if csproj else None,
|
||||
"dll": str(dll) if dll.is_file() else None,
|
||||
"dll_mtime": int(dll.stat().st_mtime) if dll.is_file() else None,
|
||||
"sqlite_dll": sqlite_dll.is_file(),
|
||||
"sqlitepcl": any(dll_dir.glob("SQLitePCLRaw*.dll")) if dll_dir.is_dir() else False,
|
||||
"dll": str(dll) if dll else None,
|
||||
"dll_mtime": int(dll.stat().st_mtime) if dll else None,
|
||||
"dll_dir": str(dll_dir) if dll_dir else None,
|
||||
"sqlite_dll": bool(sqlite_dll and sqlite_dll.is_file()),
|
||||
"sqlitepcl": any(dll_dir.glob("SQLitePCLRaw*.dll")) if dll_dir else False,
|
||||
"tab_html": tab.is_file(),
|
||||
"bundle_js": bundle.is_file(),
|
||||
"git_head": head or None,
|
||||
@@ -412,6 +417,19 @@ def collect_assistent_roles(cfg: Config, *, fs: dict[str, Any] | None = None) ->
|
||||
missing_mem = [m for m in memory if models and m not in models]
|
||||
if missing_chat:
|
||||
ok = False
|
||||
from gpu_rent.llm_runtime import is_stacked_cpu_ollama_tag
|
||||
|
||||
stacked = [
|
||||
m
|
||||
for m in list(memory) + [x for x in models if isinstance(x, str)]
|
||||
if isinstance(m, str) and is_stacked_cpu_ollama_tag(m)
|
||||
]
|
||||
if stacked:
|
||||
hints.append(
|
||||
"recursive *-cpu Ollama tags — roles.memory должен быть nomic-embed-text-cpu; "
|
||||
"ollama rm … затем re-up / provision_llm"
|
||||
)
|
||||
ok = False
|
||||
return {
|
||||
"ok": ok,
|
||||
"roles": {
|
||||
|
||||
Reference in New Issue
Block a user