🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(web): allow members to edit llm tools (#12557)
Jannik Maierhöfer5d98c466904b
diff --git a/web/src/features/rbac/constants/projectAccessRights.ts b/web/src/features/rbac/constants/projectAccessRights.tsindex a69a470e69..a214abbffd 100644--- a/web/src/features/rbac/constants/projectAccessRights.ts+++ b/web/src/features/rbac/constants/projectAccessRights.ts@@ -212,6 +212,7 @@ export const projectRoleAccessRights: Record<Role, ProjectScope[]> = {"evalDefaultModel:CUD","llmApiKeys:read","llmSchemas:read",+ "llmTools:CUD","llmTools:read","batchExports:create","batchExports:read",diff --git a/web/src/features/rbac/utils/checkAccess.clienttest.ts b/web/src/features/rbac/utils/checkAccess.clienttest.tsindex 573cae50aa..e2f905c037 100644--- a/web/src/features/rbac/utils/checkAccess.clienttest.ts+++ b/web/src/features/rbac/utils/checkAccess.clienttest.ts@@ -69,4 +69,13 @@ describe("RBAC access checks", () => {}),).toBe(true);});++ it("allows members to manage llm tools", () => {+ expect(+ hasProjectAccess({+ role: "MEMBER",+ scope: "llmTools:CUD",+ }),+ ).toBe(true);+ });});