Compare commits

..

1 Commits

Author SHA1 Message Date
Ettore Di Giacinto
748f60c11e feat(browseragent): post screenshot on slack
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-04-24 23:14:15 +02:00
5 changed files with 5 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v2
- run: | - run: |
# Add Docker's official GPG key: # Add Docker's official GPG key:
sudo apt-get update sudo apt-get update

View File

@@ -20,10 +20,10 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o mcpbox ./cmd/mcpbox RUN CGO_ENABLED=0 GOOS=linux go build -o mcpbox ./cmd/mcpbox
# Final stage # Final stage
FROM ubuntu:22.04 FROM alpine:3.19
# Install runtime dependencies # Install runtime dependencies
RUN apt-get update && apt-get install -y ca-certificates tzdata docker.io bash RUN apk add --no-cache ca-certificates tzdata docker
# Create non-root user # Create non-root user
#RUN adduser -D -g '' appuser #RUN adduser -D -g '' appuser

View File

@@ -12,11 +12,6 @@ services:
- /dev/dri/card1 - /dev/dri/card1
- /dev/dri/renderD129 - /dev/dri/renderD129
mcpbox:
extends:
file: docker-compose.yaml
service: mcpbox
localrecall: localrecall:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml

View File

@@ -17,11 +17,6 @@ services:
count: 1 count: 1
capabilities: [gpu] capabilities: [gpu]
mcpbox:
extends:
file: docker-compose.yaml
service: mcpbox
localrecall: localrecall:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml
@@ -35,4 +30,4 @@ services:
localagi: localagi:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml
service: localagi service: localagi

View File

@@ -30,15 +30,9 @@ func NewDiscord(config map[string]string) *Discord {
duration = 5 * time.Minute duration = 5 * time.Minute
} }
token := config["token"]
if !strings.HasPrefix(token, "Bot ") {
token = "Bot " + token
}
return &Discord{ return &Discord{
conversationTracker: NewConversationTracker[string](duration), conversationTracker: NewConversationTracker[string](duration),
token: token, token: config["token"],
defaultChannel: config["defaultChannel"], defaultChannel: config["defaultChannel"],
} }
} }