Skip to content

refactor: remove legacy /chat, add endpoints to root response - #12

Merged
neuromechanist merged 1 commit into
mainfrom
cleanup/remove-legacy-endpoints
Jan 8, 2026
Merged

neuromechanist merged 1 commit into
mainfrom
cleanup/remove-legacy-endpoints

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Jan 8, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Remove legacy /chat router (use /hed/chat instead)
  • Add endpoints list to root / response (like HEDit)
  • Remove test_chat.py (tested removed code, used mocks)

Root Response Now Returns

{
  "name": "Open Science Assistant",
  "version": "0.1.0",
  "description": "AI assistant for open science tools",
  "endpoints": {
    "POST /hed/ask": "Ask a single question about HED",
    "POST /hed/chat": "Multi-turn conversation about HED",
    "GET /hed/sessions": "List active sessions",
    "GET /hed/sessions/{session_id}": "Get session info",
    "DELETE /hed/sessions/{session_id}": "Delete a session",
    "GET /health": "Health check"
  }
}

Test Plan

  • Linting passes
  • Unit tests pass (21 passed)
  • CI passes

- Remove /chat router registration (use /hed/chat instead)
- Add endpoints list to root response (like HEDit)
- Remove legacy test_chat.py (used mocks, tested removed code)
@neuromechanist
neuromechanist merged commit 16f0260 into main Jan 8, 2026
@neuromechanist
neuromechanist deleted the cleanup/remove-legacy-endpoints branch January 8, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant