migrate knowledge atlas to llama.cpp
This commit is contained in:
@@ -113,10 +113,11 @@ def check_python_syntax() -> int:
|
||||
return len(paths)
|
||||
|
||||
|
||||
def check_ollama_contract() -> None:
|
||||
def check_model_api_contract() -> None:
|
||||
source = (ROOT / "web" / "app.py").read_text(encoding="utf-8")
|
||||
require('"num_ctx"' not in source, "web app must not override Ollama num_ctx")
|
||||
require('"keep_alive"' not in source, "web app must not override Ollama keep_alive")
|
||||
require('"num_ctx"' not in source, "web app must not override model API context")
|
||||
require('"keep_alive"' not in source, "web app must not send legacy keep_alive")
|
||||
require("/api/generate" not in source, "web app must use the OpenAI-compatible model API")
|
||||
|
||||
|
||||
def check_experiment_state() -> None:
|
||||
@@ -207,7 +208,7 @@ def main() -> int:
|
||||
collections = check_collection_index()
|
||||
research = check_research_data()
|
||||
python_files = check_python_syntax()
|
||||
check_ollama_contract()
|
||||
check_model_api_contract()
|
||||
check_experiment_state()
|
||||
evaluation_tasks = check_evaluation_contract()
|
||||
completion_evidence = check_evaluation_site()
|
||||
|
||||
Reference in New Issue
Block a user