mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
feedback
This commit is contained in:
parent
fa43b3c545
commit
f1b55073f7
1 changed files with 1 additions and 12 deletions
13
scripts/openapi_generator/stainless_config/generate_config.py
Executable file → Normal file
13
scripts/openapi_generator/stainless_config/generate_config.py
Executable file → Normal file
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
|
|
@ -8,7 +6,6 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
from collections.abc import Iterator
|
||||
from dataclasses import dataclass, field
|
||||
from pathlib import Path
|
||||
|
|
@ -815,16 +812,8 @@ def write_config(repo_root: Path, openapi_path: Path | None = None) -> Path:
|
|||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description="Generate stainless config and validate it against OpenAPI spec.")
|
||||
parser.add_argument(
|
||||
"--openapi",
|
||||
type=Path,
|
||||
default=None,
|
||||
help="Path to OpenAPI spec used for validation (defaults to client-sdks/stainless/openapi.yml).",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
repo_root = Path(__file__).resolve().parents[3]
|
||||
output = write_config(repo_root, args.openapi)
|
||||
output = write_config(repo_root)
|
||||
print(f"Wrote Stainless config: {output}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue