SkywardAI / kirin

Self-hosted and local-first application for inference and RAG on consumer grade hardware.
Apache License 2.0
7 stars 8 forks source link

API Changes #180

Closed Micost closed 3 months ago

Micost commented 3 months ago

Description

This removed api/chat and other useless api

Changes in API

  1. Add token verification for Account and Chat api
  2. Add uuid for session . Keep session id as the foreign key to other tables.
  3. Add anonymous user and admin user when system initializing.
  4. Account management restrict to admin user
  5. Add api/auth/token for get anonymous user's token
  6. remove get status api which is useless
  7. Chat apis won't need account id anymore, it will be retrieved from token
  8. remove data_analyze apis

This PR fixed #177 This PR fixed #177 This PR fixed #139 This PR fixed #140 This PR fixed #141

Notes for Reviewers

Signed commits

cbh778899 commented 3 months ago

I think tokens could be the simplest way to verify user so there's at least one secutiry function, so if we don't need one, we also don't need token.