Integra AI con tools (Anthropic/Z.ai) y elimina código obsoleto
- 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
This commit is contained in:
@@ -14,10 +14,39 @@ services:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user