Files
llmsecops-research/src/text_generation/config.py
2025-06-12 20:22:39 -06:00

8 lines
164 B
Python

import os
def get_api_url():
host = os.environ.get("API_HOST", "localhost")
port = 9999 if host == "localhost" else 80
return f"http://{host}:{port}"