openai / plugins-quickstart

Get a ChatGPT plugin up and running in under 5 minutes!

Home Page:https://platform.openai.com/docs/plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does anyone know how to receive user input parameters?

wishtodaya opened this issue · comments

@app.get("/news/<string:url>")
async def get_news(url):
    print(url)
    return quart.Response(response=json.dumps(url), status=200)

I want to receive a URL link input from the user, how should I handle it?

@app.get("/news/<string:url>")
async def get_news(url):
    print(url)
    return quart.Response(response=json.dumps(url), status=200)

I want to receive a URL link input from the user, how should I handle it?

Ummm I'm Not Sure Yet Maybe You Can Visit This
https://towardsdatascience.com/proper-ways-to-pass-environment-variables-in-json-for-curl-post-f797d2698bf3
Hope This Will Help

What you are doing above looks good!