- Reemplaza respuestas programadas por AI con tools - Implementa buscar_productos y confirmar_venta como tools - Configura API Anthropic (Z.ai) con glm-4.7 - Elimina código legacy de búsqueda manual - Limpia variables obsoletas (PicoClaw, OpenClaw) - Actualiza docker-compose para nuevo flujo
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./pymesbot/backend
|
|
dockerfile: Dockerfile
|
|
container_name: pymesbot_backend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8201:8000"
|
|
volumes:
|
|
- ./pymesbot/data:/app/data
|
|
environment:
|
|
- OPENCLAW_TOKEN=wlillidan1-demo-token-12345
|
|
- OPENCLAW_WS_URL=ws://openclaw_gateway:18789
|
|
- PICOLAW_URL=http://picoclaw:8080
|
|
- USE_PICOLAW=true
|
|
networks:
|
|
- default
|
|
- caddy
|
|
- openclaw_net
|
|
depends_on:
|
|
- picoclaw
|
|
|
|
picoclaw:
|
|
build:
|
|
context: ./picoclaw
|
|
dockerfile: Dockerfile
|
|
container_name: pymesbot_picoclaw
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./pymesbot/picoclaw/config.json:/root/.picoclaw/config.json:ro
|
|
- ./pymesbot/picoclaw/workspace:/root/.picoclaw/workspace
|
|
environment:
|
|
# Configuración Anthropic (Z.ai)
|
|
- ANTHROPIC_API_KEY=6fef8efda3d24eb9ad3d718daf1ae9a1.RcFc7QPe5uZLr2mS
|
|
- ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
|
|
- ANTHROPIC_MODEL=glm-4.7
|
|
# Variables PicoClaw
|
|
- PICOCLAW_LOG_LEVEL=info
|
|
- PICOCLAW_AGENTS_DEFAULTS_MODEL=claude-3-5-sonnet-20241022
|
|
- PICOCLAW_AGENTS_DEFAULTS_MAX_TOKENS=4096
|
|
- PICOCLAW_AGENTS_DEFAULTS_TEMPERATURE=0.3
|
|
networks:
|
|
- default
|
|
- caddy
|
|
ports:
|
|
- "8202:8080"
|
|
|
|
networks:
|
|
default:
|
|
name: pygmesbot_demo_net
|
|
external: false
|
|
caddy:
|
|
external: true
|
|
openclaw_net:
|
|
name: openclaw-config_pymesbot_net
|
|
external: true
|