Commit Graph
13 Commits
Author SHA1 Message Date
Anuraag Jain 77323d9b25 refac: remove the verify_token and use get-current user for auth+user 2024-01-01 10:55:50 +02:00
Anuraag Jain 8daf4500e9 Merge branch 'docs/readme' of https://github.com/anuraagdjain/ollama-webui into docs/readme 2023-12-31 09:28:42 +02:00
Anuraag Jain 8cd6eaf1bc docs: minor changes 2023-12-31 09:28:39 +02:00
Anuraag Jain 8f21de9c7c docs: add api workflow
- helps in development to understand what's happening under the hood
2023-12-30 14:20:34 +02:00
Anuraag Jain 60c801ee22 remove unused import in main 2023-12-30 13:08:03 +02:00
Anuraag Jain 2532cb1e70 Merge branch 'main' of github.com:ollama-webui/ollama-webui into refac/auth-middleware 2023-12-30 13:03:18 +02:00
Anuraag Jain 08c0d7a9ec fix: merge conflicts 2023-12-30 13:00:21 +02:00
Anuraag Jain 613053e46c Merge branch 'refac/auth-middleware' of https://github.com/anuraagdjain/ollama-webui into refac/auth-middleware 2023-12-30 12:53:35 +02:00
Anuraag Jain bdd153d8f5 refac: use dependencies to verify token
- feat: added new util to get the current user when needed. Middleware was adding authentication logic to all the routes. let's revisit if we can move the non-auth endpoints to a separate route.
- refac: update the routes to use new helpers for verification and retrieving user
- chore: added black for local formatting of py code
2023-12-30 12:53:33 +02:00
Anuraag Jain a01b112f7f feat(auth): add auth middleware
- refactored chat routes to use request.user instead of doing authentication in every route
2023-12-28 22:15:54 +02:00
Anuraag Jain 22a8fa2f10 Merge branch 'fix/model-saving' of https://github.com/anuraagdjain/ollama-webui into fix/model-saving 2023-12-28 20:19:56 +02:00
Anuraag Jain 5ee58e1c79 revert: vite config, hmr works without it 2023-12-28 20:19:09 +02:00
Anuraag Jain 4d3754980d fix(model-selector): prevent saving empty default model
- throw a toast error when user is trying to click on `set as default` without actually choosing the model(s).
- feat: added hmr for local development. use `npm run dev` and you get the hmr when debugging.
2023-12-28 18:06:17 +02:00