Submitted by lhenault t3_122tddh in MachineLearning
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)?
ryanjkelly2 t1_jdtj5vw wrote
You could use Postman.
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.
C4ptainK1ng t1_jdvqoy2 wrote
You dont need to create an Account for postman. You can just skip the registration
Beli_Mawrr t1_je394op wrote
Try Jquery AJAX. that works on the frontend. $.post, $.get, etc.
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).
HatsusenoRin t1_jduyliz wrote
Thanks for your help. I think I'll take a look at the /docs.
xorbinant_ranchu t1_jduzaeh wrote
Try obsidian with ChatGPT_md plugin
Viewing a single comment thread. View all comments