Flask API

This commit is contained in:
Adam Wilson
2025-05-18 15:21:51 -06:00
parent df0330b97f
commit bb2f61641c

View File

@@ -5,6 +5,10 @@ from src.llm.llm_rag import Phi3LanguageModelWithRag
app = Flask(__name__)
@app.route('/', methods=['GET'])
def health_check():
return "Server is running", 200
@app.route('/api/conversations', methods=['POST'])
def get_llm_response():
prompt = request.json['prompt']