bptlab / TracEX

This bachelorproject focuses on event log extraction from patient journeys using large-language models.
5 stars 5 forks source link

Feature: GPT Key Request on the landing page #113

Closed thangixd closed 6 months ago

thangixd commented 7 months ago

Hi, I have added a feature that checks if there is an Open API key in the environment variables. If not, a popup appears forcing the user to enter an API key in order to use TracEX. image

If a user submits an empty string, an error message in red will appear, indicating that input is required. image

I've designed the code to be easily extendable for future validations, such as verifying whether a key is a valid open API key, checking if it still has tokens available, or ensuring it meets specific length requirements.

This PR closes #87.

PitButtchereit commented 7 months ago

Why are we working on low priority tasks and why has our PO not approved this but this is already in the PR stage?

thangixd commented 7 months ago

Why are we working on low priority tasks and why has our PO not approved this but this is already in the PR stage?

I do not know why you ask, as it is no longer your job to assign anything mr. officer. But our PO @tkv29 has approved it and told me to finish this task as I started it in my spare time at the weekend. He also already checked it (told me to do some modification) and told me to open a PR. Meanwhile, my partner @FR-SON (which I was assign to do #93 with) was also busy preparing for our presentation on thursday.

tkv29 commented 7 months ago

yep, if someone wants to do more the person is invited to do so We have enough tasks :)

tkv29 commented 6 months ago

just checked it with docker and it works! Would be really cool if there is an key icon at the top right of the landing page, so the user can edit the key Else the user has to restart the container / server