Spaces:
Sleeping
Sleeping
Commit ·
5674cfc
1
Parent(s): b583357
Fix API_KEY priority to ensure LiteLLM proxy tracking works
Browse files44 unmodified lines45464748495051525344 unmodified linesAPI_BASE_URL: str = os.getenv("API_BASE_URL", "https://router.huggingface.co/v1")API_KEY: str = (os.getenv("HF_TOKEN")or os.getenv("API_KEY")or os.getenv("OPENAI_API_KEY", ""))MODEL_NAME: str = os.getenv("MODEL_NAME", "")ENV_SERVER_URL: str = os.getenv("ENV_SERVER_URL", "http://localhost:8000")44 unmodified lines4546474849505152535444 unmodified linesAPI_BASE_URL: str = os.getenv("API_BASE_URL", "https://router.huggingface.co/v1")API_KEY: str = (os.getenv("API_KEY")or os.getenv("HF_TOKEN")or os.getenv("OPENAI_API_KEY")or "missing-api-key")MODEL_NAME: str = os.getenv("MODEL_NAME", "")ENV_SERVER_URL: str = os.getenv("ENV_SERVER_URL", "http://localhost:8000")
inference.py+4-3