diff --git a/09-chat-project/README.md b/09-chat-project/README.md index 0156edc7..f1867eb7 100644 --- a/09-chat-project/README.md +++ b/09-chat-project/README.md @@ -1,3 +1,7 @@ # Chat project -Shows how to use AI +This chat project shows how to build a Chat Assistant using GitHub Models. + +Here's what the finished project looks like: + + \ No newline at end of file diff --git a/09-chat-project/assets/Screenshot 2025-08-28 132630.png b/09-chat-project/assets/Screenshot 2025-08-28 132630.png new file mode 100644 index 00000000..8c415126 Binary files /dev/null and b/09-chat-project/assets/Screenshot 2025-08-28 132630.png differ diff --git a/09-chat-project/backend/api.py b/09-chat-project/backend/api.py index bad25776..dde9d965 100644 --- a/09-chat-project/backend/api.py +++ b/09-chat-project/backend/api.py @@ -5,15 +5,19 @@ from llm import call_llm from flask_cors import CORS app = Flask(__name__) -CORS(app) +CORS(app) # * example.com @app.route("/", methods=["GET"]) def index(): - return "Welcome to the Chat API!" + return "Welcome to this lesson" + +@app.route("/test", methods=["GET"]) +def test(): + return "Test" @app.route("/hello", methods=["POST"]) def hello(): - # get message from request body + # get message from request body { "message": "do this taks for me" } data = request.get_json() message = data.get("message", "") diff --git a/09-chat-project/frontend/index.html b/09-chat-project/frontend/index.html index 8504d3b7..e0091e09 100644 --- a/09-chat-project/frontend/index.html +++ b/09-chat-project/frontend/index.html @@ -12,7 +12,7 @@
Dark-mode chat UI — powered by the backend AI