Skip to content

Commit

Permalink
chore: delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jan 15, 2025
1 parent 18c242e commit d4bf5cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 58 deletions.
48 changes: 0 additions & 48 deletions pkg/aihelper/runprompt.go

This file was deleted.

9 changes: 3 additions & 6 deletions pkg/controller/handlers/knowledgeset/knowledgeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/obot-platform/nah/pkg/name"
"github.com/obot-platform/nah/pkg/router"
"github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/aihelper"
"github.com/obot-platform/obot/pkg/create"
"github.com/obot-platform/obot/pkg/invoke"
v1 "github.com/obot-platform/obot/pkg/storage/apis/obot.obot.ai/v1"
Expand All @@ -18,14 +17,12 @@ import (
)

type Handler struct {
aiHelper *aihelper.AIHelper
invoker *invoke.Invoker
invoker *invoke.Invoker
}

func New(aiHelper *aihelper.AIHelper, invoker *invoke.Invoker) *Handler {
func New(invoker *invoke.Invoker) *Handler {
return &Handler{
aiHelper: aiHelper,
invoker: invoker,
invoker: invoker,
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (c *Controller) setupRoutes() error {
toolRef := toolreference.New(c.services.GPTClient, c.services.ModelProviderDispatcher,
c.services.ToolRegistryURL, c.services.SupportDocker)
workspace := workspace.New(c.services.GPTClient, c.services.WorkspaceProviderType)
knowledgeset := knowledgeset.New(c.services.AIHelper, c.services.Invoker)
knowledgeset := knowledgeset.New(c.services.Invoker)
knowledgesource := knowledgesource.NewHandler(c.services.Invoker, c.services.GPTClient)
knowledgefile := knowledgefile.New(c.services.Invoker, c.services.GPTClient, c.services.KnowledgeSetIngestionLimit)
runs := runs.New(c.services.Invoker)
Expand Down
3 changes: 0 additions & 3 deletions pkg/services/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"github.com/obot-platform/nah/pkg/apply"
"github.com/obot-platform/nah/pkg/leader"
"github.com/obot-platform/nah/pkg/router"
"github.com/obot-platform/obot/pkg/aihelper"
"github.com/obot-platform/obot/pkg/api/authn"
"github.com/obot-platform/obot/pkg/api/authz"
"github.com/obot-platform/obot/pkg/api/server"
Expand Down Expand Up @@ -89,7 +88,6 @@ type Services struct {
Invoker *invoke.Invoker
TokenServer *jwt.TokenService
APIServer *server.Server
AIHelper *aihelper.AIHelper
Started chan struct{}
ProxyServer *proxy.Proxy
GatewayServer *gserver.Server
Expand Down Expand Up @@ -357,7 +355,6 @@ func New(ctx context.Context, config Config) (*Services, error) {
authz.NewAuthorizer(r.Backend()), proxyServer, config.Hostname),
TokenServer: tokenServer,
Invoker: invoker,
AIHelper: aihelper.New(c, config.HelperModel),
GatewayServer: gatewayServer,
GatewayClient: gatewayClient,
ProxyServer: proxyServer,
Expand Down

0 comments on commit d4bf5cf

Please sign in to comment.