Skip to content

Commit 38338a2

Browse files
authored
guardrails and audit logs (#595)
## Add Enterprise Guardrails and Audit Logs Features This PR adds two new enterprise features: Guardrails for content safety and security validation, and Audit Logs for comprehensive security event tracking. It also improves documentation for these features and makes minor UI adjustments to support them. ## Changes - Added comprehensive documentation for Guardrails with support for AWS Bedrock, Azure Content Safety, and Patronus AI - Added detailed documentation for Audit Logs with examples of configuration, querying, and SIEM integration - Updated the sidebar to include new enterprise feature links - Renamed "Teams & Customers" to "Users & Groups" for better clarity - Added placeholder UI components for the new enterprise features - Updated BifrostRequest documentation with clearer comments - Updated Maxim Go dependency to v0.1.13 - Added provider logos for Azure, Bedrock, Mistral, and Patronus ## Type of change - [x] Feature - [x] Documentation ## Affected areas - [x] Core (Go) - [x] UI (Next.js) - [x] Docs ## How to test ```sh # Core go version go test ./... # UI cd ui pnpm i pnpm build ``` Navigate to the new enterprise features in the UI: 1. Check the sidebar for new "Guardrails" and "Audit Logs" links 2. Verify the placeholder UI components load correctly 3. Review the documentation for the new features ## Breaking changes - [x] No ## Related issues Implements enterprise feature roadmap items ## Security considerations These features enhance security by providing content safety validation and comprehensive audit logging capabilities. ## Checklist - [x] I added/updated tests where appropriate - [x] I updated documentation where needed - [x] I verified builds succeed (Go and UI)
2 parents a2631e2 + a09ab6b commit 38338a2

File tree

38 files changed

+1495
-62
lines changed

38 files changed

+1495
-62
lines changed

core/schemas/bifrost.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ const (
1414

1515
type KeySelector func(ctx *context.Context, keys []Key, providerKey ModelProvider, model string) (Key, error)
1616

17+
// BifrostRequest is the request struct for all bifrost requests.
1718
// only ONE of the following fields should be set:
19+
// - TextCompletionRequest
20+
// - ChatRequest
21+
// - ResponsesRequest
22+
// - EmbeddingRequest
23+
// - SpeechRequest
24+
// - TranscriptionRequest
1825
type BifrostRequest struct {
1926
Provider ModelProvider
2027
Model string

docs/docs.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,15 @@
108108
"group": "Enterprise Features",
109109
"icon": "building",
110110
"pages": [
111+
"enterprise/guardrails",
111112
"enterprise/clustering",
112113
"enterprise/governance",
113114
"enterprise/mcp-with-fa",
114115
"enterprise/vault-support",
115116
"enterprise/invpc-deployments",
116117
"enterprise/intelligent-load-balancing",
117118
"enterprise/custom-plugins",
119+
"enterprise/audit-logs",
118120
"enterprise/log-exports"
119121
]
120122
}

0 commit comments

Comments
 (0)