From 9aa59dcfcab9f8ef0c8c34273e046e898261b34a Mon Sep 17 00:00:00 2001 From: "Jason M. Cherry" Date: Wed, 25 Mar 2026 21:11:52 -0700 Subject: [PATCH] fix: align api version surfaces with package metadata --- API.md | 3 +-- playground_api.ipynb | 2 +- src/vgm/api/server.py | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index baa5a8c..3e5ef5f 100644 --- a/API.md +++ b/API.md @@ -229,7 +229,7 @@ API health check. { "status": "ok", "service": "vector-graph-memory-api", - "version": "1.0.0" + "version": "0.1.0" } ``` @@ -295,7 +295,6 @@ The API server: ## Known Gaps - MongoDB audit logging is intended but not fully wired into API startup configuration. -- The API reports `1.0.0` in FastAPI metadata and the health endpoint, while package metadata remains `0.1.0`. - `start_api.sh` requires `OPENAI_API_KEY` to be exported in the current shell and does not source `.env`. - JanusGraph schema initialization is manual for local library and local API development. - Session-scoped audit history does not currently apply the documented `limit` parameter. diff --git a/playground_api.ipynb b/playground_api.ipynb index 4f64437..b604ff9 100644 --- a/playground_api.ipynb +++ b/playground_api.ipynb @@ -90,7 +90,7 @@ "text": [ "✓ Connected to Vector Graph Memory API\n", " Service: vector-graph-memory-api\n", - " Version: 1.0.0\n" + " Version: 0.1.0\n" ] } ], diff --git a/src/vgm/api/server.py b/src/vgm/api/server.py index 75720f6..da41c5e 100644 --- a/src/vgm/api/server.py +++ b/src/vgm/api/server.py @@ -12,6 +12,7 @@ from pydantic_ai.embeddings.openai import OpenAIEmbeddingModel from dotenv import load_dotenv +from .. import __version__ as PACKAGE_VERSION from ..MemoryAgent import MemoryAgent from ..config import MemoryConfig, MemoryTriggerConfig, AuditConfig @@ -213,7 +214,7 @@ async def lifespan(_app: FastAPI): app = FastAPI( title="Vector Graph Memory API", description="OpenAI-compatible API with persistent vector-graph memory", - version="1.0.0", + version=PACKAGE_VERSION, lifespan=lifespan, ) @@ -227,7 +228,7 @@ async def root(): return { "status": "ok", "service": "vector-graph-memory-api", - "version": "1.0.0", + "version": PACKAGE_VERSION, }