fastapi-proxy-test / key_selector.py
tanbushi's picture
Sun Jun 8 15:02:12 CST 2025
b7791c2
raw
history blame contribute delete
348 Bytes
import os
from dotenv import load_dotenv
load_dotenv()
class KeySelector():
def __init__(self):
pass
def get_api_key_info(self):
api_key_info = {
"key_at": "at_headers",
"key_name": "X_Goog_Api_Key",
"key_value": os.getenv("X_Goog_Api_Key", "")
}
return api_key_info