From 6af4770709dc0f990a3f9e93e8bd20374bef16b6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 26 May 2026 11:58:07 +0800 Subject: [PATCH] fix: add RBAC permissions for llmage /v1 API endpoints Added logined permission entries for all v1 OpenAI-compatible endpoints: - /v1/chat/completions (existing, was missing) - /v1/models (existing, was missing) - /v1/tasks (existing, was missing) - /v1/video/generations (new) - /v1/image/generations (new) Each has both directory and index.dspy file entries. --- load_path.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/load_path.py b/load_path.py index 140f4ee..27a5325 100644 --- a/load_path.py +++ b/load_path.py @@ -74,6 +74,16 @@ paths="""/ any /llmage/llm/add_llm.dspy logined /llmage/show_llms_by_providers.ui logined /llmage/list_paging_catelog_llms.dspy logined +/llmage/v1/chat/completions logined +/llmage/v1/chat/completions/index.dspy logined +/llmage/v1/models logined +/llmage/v1/models/index.dspy logined +/llmage/v1/tasks logined +/llmage/v1/tasks/index.dspy logined +/llmage/v1/video/generations logined +/llmage/v1/video/generations/index.dspy logined +/llmage/v1/image/generations logined +/llmage/v1/image/generations/index.dspy logined /public any /public/mainpage any /public/mainpage/wish.webp any