✅ API activa y funcionando
Modelo: Zephyr-7B
URL: POST /generate
Formato de solicitud:
{
"message": "Tu pregunta sobre emprendimiento aquí"
}
Formato de respuesta:
{
"response": "Respuesta generada por BITER"
}
Para integrar BITER en justbyte.es, usa este código en tu archivo chat.php:
// Ejemplo de código para enviar solicitud a la API
fetch('https://tu-usuario-huggingface.hf.space/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
message: preguntaDelUsuario
})
})
.then(response => response.json())
.then(data => {
// Mostrar la respuesta en tu interfaz
mostrarRespuesta(data.response);
});