Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
krichard1212 committed Nov 28, 2024
1 parent 5a71bf5 commit 63fad1c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 242 deletions.
135 changes: 0 additions & 135 deletions lib/llamaguard/handlers.go

This file was deleted.

103 changes: 0 additions & 103 deletions lib/promptguard/handlers.go

This file was deleted.

4 changes: 0 additions & 4 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package server
import (
"context"
"fmt"
"github.com/openshieldai/openshield/lib/llamaguard"
"github.com/openshieldai/openshield/lib/promptguard"
"net/http"
"time"

Expand Down Expand Up @@ -145,8 +143,6 @@ func setupOpenAIRoutes(r chi.Router) {
r.Route("/huggingface/v1", func(r chi.Router) {
r.Post("/chat/completions", lib.AuthOpenShieldMiddleware(huggingface.ChatCompletionHandler))
})
r.Post("/v1/llamaguard/analyze", lib.AuthOpenShieldMiddleware(llamaguard.AnalyzeHandler))
r.Post("/v1/promptguard/analyze", lib.AuthOpenShieldMiddleware(promptguard.AnalyzeHandler))
}

var redisClient *redis.Client
Expand Down

0 comments on commit 63fad1c

Please sign in to comment.