chore: jarvisChat → cAIc rename, single-node consolidation on jarvis, Qdrant UUID5 + chunk-size deploy fixes
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - /api/chat streaming endpoint."""
|
||||
"""cAIc routers - /api/chat streaming endpoint."""
|
||||
import asyncio
|
||||
import json
|
||||
import logging
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - Cluster status API."""
|
||||
"""cAIc routers - Cluster status API."""
|
||||
from fastapi import APIRouter
|
||||
|
||||
import cluster
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
JarvisChat - /v1/chat/completions router.
|
||||
cAIc - /v1/chat/completions router.
|
||||
OpenAI-compatible endpoint for IDE integration (Continue.dev, etc.).
|
||||
Runs all requests through the full jC pipeline: profile + RAG + memory injection.
|
||||
FIM (fill-in-the-middle) requests are proxied directly — not persisted.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - Conversation CRUD."""
|
||||
"""cAIc routers - Conversation CRUD."""
|
||||
import logging
|
||||
import uuid
|
||||
from datetime import datetime, timezone
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers — Hardware self-assessment endpoint."""
|
||||
"""cAIc routers — Hardware self-assessment endpoint."""
|
||||
import json
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers — Image generation proxy endpoint."""
|
||||
"""cAIc routers — Image generation proxy endpoint."""
|
||||
import base64
|
||||
import logging
|
||||
|
||||
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
"""JarvisChat routers - /api/ingest terminal command RAG hook."""
|
||||
"""cAIc routers - /api/ingest terminal command RAG hook."""
|
||||
import hashlib
|
||||
import hmac
|
||||
import logging
|
||||
import uuid
|
||||
from datetime import datetime, timezone
|
||||
|
||||
import httpx
|
||||
@@ -53,7 +54,7 @@ async def ingest_content(request: Request):
|
||||
continue
|
||||
vector = embed_resp.json()["embedding"]
|
||||
chunk_hash = hashlib.md5(chunk.encode("utf-8")).hexdigest()[:12]
|
||||
point_id = f"ingest-{source}-{chunk_hash}-{i}"
|
||||
point_id = str(uuid.uuid5(uuid.NAMESPACE_DNS, f"ingest-{source}-{chunk_hash}-{i}"))
|
||||
payload = {"text": encrypt_text(chunk), "source": source, "ingest_date": datetime.now(timezone.utc).isoformat(), "type": "ingest"}
|
||||
payload.update(metadata)
|
||||
upsert_resp = await client.put(
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - Memory CRUD API."""
|
||||
"""cAIc routers - Memory CRUD API."""
|
||||
from fastapi import APIRouter, HTTPException, Request
|
||||
from typing import Optional
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
JarvisChat routers - Model listing, system stats.
|
||||
cAIc routers - Model listing, system stats.
|
||||
"""
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - System prompt presets."""
|
||||
"""cAIc routers - System prompt presets."""
|
||||
import uuid
|
||||
from datetime import datetime, timezone
|
||||
from fastapi import APIRouter, HTTPException, Request
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - Profile."""
|
||||
"""cAIc routers - Profile."""
|
||||
from datetime import datetime, timezone
|
||||
from fastapi import APIRouter, HTTPException, Request
|
||||
from db import get_db
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers — RAG corpus management admin endpoints."""
|
||||
"""cAIc routers — RAG corpus management admin endpoints."""
|
||||
import logging
|
||||
from datetime import datetime, timezone
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - /api/search explicit search endpoint."""
|
||||
"""cAIc routers - /api/search explicit search endpoint."""
|
||||
import json
|
||||
import logging
|
||||
import uuid
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - Settings."""
|
||||
"""cAIc routers - Settings."""
|
||||
from fastapi import APIRouter, HTTPException, Request
|
||||
from db import get_db
|
||||
from security import read_json_body, BODY_LIMIT_DEFAULT_BYTES
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
"""JarvisChat routers - Skills."""
|
||||
"""cAIc routers - Skills."""
|
||||
from fastapi import APIRouter, HTTPException, Request
|
||||
from db import get_db, get_setting, list_skills_with_state, set_skill_enabled
|
||||
from security import read_json_body, BODY_LIMIT_DEFAULT_BYTES
|
||||
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
"""JarvisChat routers - /api/upload file/document attachment endpoint."""
|
||||
"""cAIc routers - /api/upload file/document attachment endpoint."""
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import uuid
|
||||
from datetime import datetime, timezone, timedelta
|
||||
|
||||
import httpx
|
||||
@@ -19,7 +20,7 @@ router = APIRouter()
|
||||
|
||||
|
||||
def _point_id(filename: str, chunk_idx: int) -> str:
|
||||
return f"upload-{filename}-{chunk_idx}"
|
||||
return str(uuid.uuid5(uuid.NAMESPACE_DNS, f"upload-{filename}-{chunk_idx}"))
|
||||
|
||||
|
||||
@router.post("/api/upload")
|
||||
|
||||
Reference in New Issue
Block a user