aider/examples/hello-world-flask.md
Paul Gauthier f79bec7994 better
2023-05-12 15:20:06 -07:00

919 B

New session started at 2023-05-12 15:18:51

This tool will almost certainly fail to work with gpt-3.5-turbo
Creating /Users/gauthier/tmp/flask/app.py
Loading /Users/gauthier/tmp/flask/app.py
Files not tracked in /Users/gauthier/tmp/flask/.git:
- app.py
Add them? yes
Added app.py to the git repo
Committed new files with message: Initial commit: Added new files to the git repo: app.py


> make a flask app with a /hello endpoint that returns hello world

Ok, here are the changes:

app.py
<<<<<<< ORIGINAL
=======
from flask import Flask

app = Flask(__name__)

@app.route('/hello')
def hello():
    return 'Hello, World!'
>>>>>>> UPDATED

This code creates a Flask app and adds a /hello endpoint that returns "Hello, World!" when accessed.

Applied edit to app.py
af1bf66 aider: Added a /hello endpoint that returns "Hello, World!" when accessed.