diff --git a/docker/local/Dockerfile b/docker/local/Dockerfile index a239899..a9d69b4 100644 --- a/docker/local/Dockerfile +++ b/docker/local/Dockerfile @@ -16,6 +16,8 @@ FROM ubuntu:22.04 COPY --from=builder /app/main /app/main +WORKDIR /app + # Install python3.10 RUN apt-get update && apt-get install -y python3.10 python3.10-venv python3.10-dev \ && apt-get clean \ diff --git a/docker/serverless/Dockerfile b/docker/serverless/Dockerfile index 683858c..bc9a0b3 100644 --- a/docker/serverless/Dockerfile +++ b/docker/serverless/Dockerfile @@ -16,6 +16,8 @@ FROM alpine:latest COPY --from=builder /app/main /app/main +WORKDIR /app + ENV PLATFORM=aws_lambda ENV GIN_MODE=release diff --git a/internal/core/dify_invocation/types.go b/internal/core/dify_invocation/types.go index 065f2d6..a721ab6 100644 --- a/internal/core/dify_invocation/types.go +++ b/internal/core/dify_invocation/types.go @@ -2,7 +2,6 @@ package dify_invocation import ( "github.com/go-playground/validator/v10" - "github.com/langgenius/dify-plugin-daemon/internal/types/entities/app_entities" "github.com/langgenius/dify-plugin-daemon/internal/types/entities/plugin_entities" "github.com/langgenius/dify-plugin-daemon/internal/types/entities/requests" "github.com/langgenius/dify-plugin-daemon/internal/types/validators" @@ -69,13 +68,12 @@ type InvokeModerationRequest struct { } type InvokeAppSchema struct { - AppId string `json:"app_id" validate:"required"` - Inputs map[string]any `json:"inputs" validate:"omitempty"` - Query string `json:"query" validate:"omitempty"` - ResponseMode string `json:"response_mode"` - ConversationId string `json:"conversation_id"` - User string `json:"user" validate:"omitempty"` - Files []*app_entities.FileVar `json:"files" validate:"omitempty,dive"` + AppId string `json:"app_id" validate:"required"` + Inputs map[string]any `json:"inputs" validate:"omitempty"` + Query string `json:"query" validate:"omitempty"` + ResponseMode string `json:"response_mode"` + ConversationId string `json:"conversation_id"` + User string `json:"user" validate:"omitempty"` } type StorageOpt string diff --git a/internal/types/entities/app_entities/file.go b/internal/types/entities/app_entities/file.go deleted file mode 100644 index ce8664d..0000000 --- a/internal/types/entities/app_entities/file.go +++ /dev/null @@ -1,5 +0,0 @@ -package app_entities - -// TODO -type FileVar struct { -}