Initializes API keys. Ensures key.txt exists and loads keys.
()
| 22 | |
| 23 | |
| 24 | def initialize_keys(): |
| 25 | """Initializes API keys. Ensures key.txt exists and loads keys.""" |
| 26 | if not os.path.exists(KEY_FILE_PATH): |
| 27 | with open(KEY_FILE_PATH, "w"): |
| 28 | pass # Create an empty file |
| 29 | load_api_keys() |
| 30 | |
| 31 | |
| 32 | def verify_api_key(api_key_from_header: str) -> bool: |