This project serves as a basic HTTP service facilitating communication with the Mistral AI model. The /api/generate
endpoint is available via [POST] and accepts a JSON body containing a 'text' field. Submitting data to this endpoint prompts the Mistral AI model to generate a response based on the provided input.
To start the project install all dependencies in the requirements section.
Then download mistral:instruct
model:
ollama pull mistral:instruct
Install Python dependencies:
pip install -r requirements.txt
And finally start the dev server:
flask run --debug