ltcai 0.1.28 → 0.1.30
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.
- package/README.md +42 -16
- package/auto_setup.py +605 -0
- package/docs/CHANGELOG.md +57 -0
- package/docs/images/lattice-ai-demo.gif +0 -0
- package/docs/images/screenshot-admin.png +0 -0
- package/docs/images/screenshot-chat.png +0 -0
- package/docs/images/screenshot-graph.png +0 -0
- package/kg_schema.py +723 -0
- package/llm_router.py +4 -4
- package/mcp_registry.py +791 -0
- package/package.json +5 -1
- package/requirements.txt +1 -0
- package/server.py +738 -823
- package/static/account.html +5 -616
- package/static/admin.html +236 -1371
- package/static/chat.html +204 -7146
- package/static/graph.html +15 -1436
- package/static/lattice-reference.css +6557 -71
- package/static/scripts/account.js +230 -0
- package/static/scripts/admin.js +1198 -0
- package/static/scripts/chat.js +4634 -0
- package/static/scripts/graph.js +1059 -0
- package/static/sw.js +11 -1
package/llm_router.py
CHANGED
|
@@ -128,12 +128,12 @@ PROVIDER_MODEL_CATALOG = {
|
|
|
128
128
|
],
|
|
129
129
|
"openrouter": [
|
|
130
130
|
{"id": "openai/gpt-4o-mini", "name": "GPT-4o Mini via OpenRouter", "family": "GPT"},
|
|
131
|
-
{"id": "anthropic/claude-
|
|
132
|
-
{"id": "anthropic/claude-
|
|
131
|
+
{"id": "anthropic/claude-sonnet-4-6", "name": "Claude Sonnet 4.6 via OpenRouter", "family": "Claude"},
|
|
132
|
+
{"id": "anthropic/claude-haiku-4-5", "name": "Claude Haiku 4.5 via OpenRouter", "family": "Claude"},
|
|
133
133
|
{"id": "x-ai/grok-2", "name": "Grok 2 via OpenRouter", "family": "Grok"},
|
|
134
134
|
{"id": "meta-llama/llama-3.3-70b-instruct", "name": "Llama 3.3 70B via OpenRouter", "family": "Llama"},
|
|
135
135
|
{"id": "qwen/qwen-2.5-72b-instruct", "name": "Qwen 2.5 72B via OpenRouter", "family": "Qwen"},
|
|
136
|
-
{"id": "google/gemini-2.
|
|
136
|
+
{"id": "google/gemini-2.5-flash", "name": "Gemini 2.5 Flash via OpenRouter", "family": "Gemini"},
|
|
137
137
|
],
|
|
138
138
|
"groq": [
|
|
139
139
|
{"id": "llama-3.1-8b-instant", "name": "Llama 3.1 8B Instant", "family": "Llama"},
|
|
@@ -174,7 +174,7 @@ def parse_model_ref(model_id: str) -> tuple[str, str]:
|
|
|
174
174
|
return "local_mlx", model_id.split(":", 1)[1]
|
|
175
175
|
return "local_mlx", model_id
|
|
176
176
|
|
|
177
|
-
HF_MODELS_ROOT = Path.home() / ".
|
|
177
|
+
HF_MODELS_ROOT = Path.home() / ".ltcai" / "hf-models"
|
|
178
178
|
|
|
179
179
|
def hf_model_dir(repo_id: str) -> Path:
|
|
180
180
|
return HF_MODELS_ROOT / repo_id.replace("/", "__")
|