CoolFace
Apppublic

Benigno06/homecode-support-chat

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

HomeCode Stock — Chat de Soporte

API de chat con FastAPI + NeMo Guardrails + Groq para la app HomeCode Stock.

EndpointMétodoDescripción
/GETInfo del servicio
/healthGETEstado del servidor
/chatPOSTEnviar mensaje al asistente
/docsGETDocumentación interactiva (Swagger)

Secrets (Settings → Repository secrets)

SecretObligatorio
GROQ_API_KEY
CORS_ORIGINSRecomendado (URL de tu PWA en Vercel)

Probar

bash
curl -X POST https://benigno06-homecode-support-chat.hf.space/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "¿Cómo busco un producto por SKU?"}'

PWA HomeCode Stock

En config.js:

javascript
CHAT_API_URL: 'https://benigno06-homecode-support-chat.hf.space/chat',