Update docs, configs, and scripts

Co-Authored-By: Oz <oz-agent@warp.dev>
This commit is contained in:
Raghav
2026-04-19 09:42:52 +05:30
parent 12b66edd22
commit 319881a09f
11 changed files with 157 additions and 62 deletions

View File

@ -16,9 +16,12 @@ def load_dotenv(dotenv_path: Path) -> None:
line = raw_line.strip()
if not line or line.startswith("#") or "=" not in line:
continue
if line.startswith("export "):
line = line[len("export ") :].strip()
key, value = line.split("=", 1)
key = key.strip()
value = value.strip().strip('"').strip("'")
value = os.path.expandvars(value.strip().strip('"').strip("'"))
os.environ.setdefault(key, value)
@ -27,7 +30,10 @@ def main() -> int:
load_dotenv(repo_root / ".env")
backend_port = os.getenv("BACKEND_PORT", "8000")
model_id = os.getenv("GEMMA_MODEL_ID", "google/gemma-3-1b-it")
model_id = os.getenv("GEMMA_MODEL_ID")
if not model_id:
print("[test_python_client][error] GEMMA_MODEL_ID is not set in .env.", file=sys.stderr)
return 1
api_key = os.getenv("VLLM_API_KEY", "EMPTY")
base_url = f"http://localhost:{backend_port}/v1"