Antes de ejecutar la aplicación, asegúrate de configurar las siguientes variables de entorno:
file: .env
OPENAI_API_KEY=
Para ejecutar la aplicación, simplemente usa el siguiente comando:
python main.py
- BooksRecomenderGenAI.app
- BooksRecomenderGenAI.main
App()
:
### Methods
`generate_text(self, prompt)`
: Generar texto con el modelo LLM GTP-4o-mini
Config()
:
### Static methods
`get_all(filepath='app/config-model.json')`
: Carga y devuelve todos los valores del archivo config-model.json.