Spaces:
Runtime error
Runtime error
metadata
title: Pet Assistant Llama Index
emoji: 😻
colorFrom: gray
colorTo: yellow
sdk: docker
pinned: false
port: 7860
app_port: 7860
Pet Assistant LlamaIndex API
This API provides a chat endpoint powered by LlamaIndex, specifically designed to assist with pet-related queries. The service is compatible with Hugging Face's Chat UI and exposes a REST API on port 7860.
API Endpoints
Chat Endpoint
POST /chat
Content-Type: application/json
Request body:
{
"messages": [
{
"role": "user",
"content": "How often should I feed my cat?"
}
],
"temperature": 0.7,
"max_tokens": 1024,
"parameters": {}
}
Response:
{
"content": "The response from LlamaIndex...",
"stop": null,
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}
Health Check
GET /health
Response:
{
"status": "healthy"
}