mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-03-17 15:56:22 +00:00
8 lines
164 B
Python
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}"
|