Spaces:
Sleeping
Sleeping
caiocampos-hotmart
commited on
Commit
·
1cdbdd3
1
Parent(s):
244d22f
Add application file
Browse files
README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
-
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
| 10 |
-
hardware: cpu-upgrade
|
| 11 |
---
|
| 12 |
|
| 13 |
# 🧠 LLM Agent API
|
|
@@ -17,9 +15,11 @@ API REST com modelo Llama 2 7B rodando localmente usando llama-cpp-python.
|
|
| 17 |
## Endpoints
|
| 18 |
|
| 19 |
### POST /chat
|
|
|
|
| 20 |
Envia mensagem para o agente LLM.
|
| 21 |
|
| 22 |
**Request:**
|
|
|
|
| 23 |
```json
|
| 24 |
{
|
| 25 |
"message": "Olá, como você está?",
|
|
@@ -29,6 +29,7 @@ Envia mensagem para o agente LLM.
|
|
| 29 |
```
|
| 30 |
|
| 31 |
**Response:**
|
|
|
|
| 32 |
```json
|
| 33 |
{
|
| 34 |
"response": "Olá! Estou bem, obrigado por perguntar. Como posso ajudá-lo hoje?"
|
|
@@ -36,9 +37,11 @@ Envia mensagem para o agente LLM.
|
|
| 36 |
```
|
| 37 |
|
| 38 |
### GET /health
|
|
|
|
| 39 |
Verifica status da API.
|
| 40 |
|
| 41 |
**Response:**
|
|
|
|
| 42 |
```json
|
| 43 |
{
|
| 44 |
"status": "healthy"
|
|
@@ -57,4 +60,4 @@ curl -X POST "http://localhost:7860/chat" \
|
|
| 57 |
|
| 58 |
- FastAPI
|
| 59 |
- llama-cpp-python
|
| 60 |
-
- Uvicorn
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Llm Agent Api
|
| 3 |
+
emoji: 🌍
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# 🧠 LLM Agent API
|
|
|
|
| 15 |
## Endpoints
|
| 16 |
|
| 17 |
### POST /chat
|
| 18 |
+
|
| 19 |
Envia mensagem para o agente LLM.
|
| 20 |
|
| 21 |
**Request:**
|
| 22 |
+
|
| 23 |
```json
|
| 24 |
{
|
| 25 |
"message": "Olá, como você está?",
|
|
|
|
| 29 |
```
|
| 30 |
|
| 31 |
**Response:**
|
| 32 |
+
|
| 33 |
```json
|
| 34 |
{
|
| 35 |
"response": "Olá! Estou bem, obrigado por perguntar. Como posso ajudá-lo hoje?"
|
|
|
|
| 37 |
```
|
| 38 |
|
| 39 |
### GET /health
|
| 40 |
+
|
| 41 |
Verifica status da API.
|
| 42 |
|
| 43 |
**Response:**
|
| 44 |
+
|
| 45 |
```json
|
| 46 |
{
|
| 47 |
"status": "healthy"
|
|
|
|
| 60 |
|
| 61 |
- FastAPI
|
| 62 |
- llama-cpp-python
|
| 63 |
+
- Uvicorn
|