Update docs, configs, and scripts
Co-Authored-By: Oz <oz-agent@warp.dev>
This commit is contained in:
@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user