Viewing a single comment thread. View all comments

HatsusenoRin t1_jdtanqn wrote

Nice work. Do you have (or have suggestions for) a simple web frontend for testing (instead of lots of curl commands)?

8

ryanjkelly2 t1_jdtj5vw wrote

You could use Postman.

4

HatsusenoRin t1_jdty1by wrote

Thanks. However I don't think it's made specifically for this API and it forces me to open new account to use it (usually the app goes to my trash bin as soon as I realize it).

I'm surprised that there's no open-source frontend for testing this popular API.

−1

C4ptainK1ng t1_jdvqoy2 wrote

You dont need to create an Account for postman. You can just skip the registration

1

Beli_Mawrr t1_je394op wrote

Try Jquery AJAX. that works on the frontend. $.post, $.get, etc.

1

lhenault OP t1_jdukg00 wrote

Hey thank you for the feedback! As r/ryanjkelly2 suggested, you could indeed use Postman, but I believe the easiest way is to use the already included Swagger UI, available at <base_url>/docs.

If your goal is to have a slightly more friendly UI for end users, it should be relatively easy to build something custom, using the OpenAI clients (or requests package) and something like Streamlit. Or even a notebook (you can use the OpenAI cookbook as a starting point).

3

HatsusenoRin t1_jduyliz wrote

Thanks for your help. I think I'll take a look at the /docs.

3