mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-05-10 19:54:57 +02: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}"
|