Spaces:
Running
Running
Sibam commited on
Commit Β·
14c1b69
1
Parent(s): 7f43d74
fix: update API_BASE_URL to router.huggingface.co, openenv validate passes
Browse filesFiles changed (3)
18 unmodified lines192021222223242518 unmodified linesfrom openai import OpenAI
# ββ Mandatory env vars βββββββββββββββββββββββββββββββββββββββββAPI_BASE_URL = os.getenv("API_BASE_URL", "https://api-inference.huggingface.co/v1")API_BASE_URL = os.getenv("API_BASE_URL", "https://router.huggingface.co/v1")MODEL_NAME = os.getenv("MODEL_NAME", "meta-llama/Llama-3.1-8B-Instruct")HF_TOKEN = os.getenv("HF_TOKEN")ENV_BASE_URL = os.getenv("ENV_BASE_URL", "http://localhost:8000")31 unmodified lines32333435363731 unmodified lines
[tool.pytest.ini_options]asyncio_mode = "auto"
[project.scripts]server = "server.app:main"85 unmodified lines868788899091929394959685 unmodified linesasync def chrome_devtools(): """Suppress Chrome DevTools discovery 404.""" return JSONResponse({})
def main(): import uvicorn uvicorn.run(app, host="0.0.0.0", port=7860)
if __name__ == "__main__": main()inference.py+1-1
pyproject.toml+3
server/app.py+8