# api-chatbot-academia To install dependencies: ```bash bun install ``` To run: ```bash bun run index.ts ``` This project was created using `bun init` in bun v1.3.6. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime. ```http curl -X POST http://localhost:3402/api/embeddings \ -H "Content-Type: application/json" \ -d '{"prompt": "on docker?", "topK": 3, "limiarSimilaridade": 0.5}' ``` ```http curl -X POST http://localhost:3401 -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "buscar_exercicios_por_grupo", "arguments": {"grupo_muscular": "Pernas"} } }' ``` ```http curl -X POST http://localhost:3403/chat \ -H "Content-Type: application/json" \ -d '{ "mensagem": "Quais exercícios de peito eu devo fazer?" }' ``` ```http curl -X POST http://localhost:3000/chat \ -H "Content-Type: application/json" \ -d '{ "mensagem": "qual é o exercio 3?" }' ``` ```http curl -X POST http://localhost:3403/chat \ -H "Content-Type: application/json" \ -d '{ "mensagem": "listar meus exercicios + dicas de hipertrofia" }' ``` ```http curl -X POST http://localhost:3403/chat \ -H "Content-Type: application/json" \ -d '{ "mensagem": "rodar docker" }' ``` docker image build --pull -t chatbot-server-academia . docker run --restart=always --name chatbot-server-academia --network host -d -e PORT=3403 chatbot-server-academia