ufal / factgenie

Lightweight self-hosted span annotation tool
MIT License
20 stars 1 forks source link

Allow users to set OPENAI_API_KEY in the app config #147

Open kasnerz opened 6 days ago

kasnerz commented 6 days ago

Currently, we expect OPENAI_API_KEY to be set as environmental variable, which can be non-intuitive.

We can allow the users to set this key (and also other API keys) in the app configuration file, so that it can be set through the web interface or the YAML config file.

Are there any safety issues that we should think of? @oplatek

oplatek commented 6 days ago

We should not log the variable or the whole environment (even when raising some unexpected exception) otherwise we are fine.