mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 16:32:12 +00:00
Fix update doc along.
This commit is contained in:
parent
733eb5fa90
commit
d88ae2c5b2
@ -142,14 +142,12 @@ def check_openapi(check: bool):
|
||||
|
||||
with open(tmp_filename, "w") as f:
|
||||
json.dump(new_openapi_data, f, indent=2)
|
||||
f.write("\n")
|
||||
|
||||
if check:
|
||||
diff = subprocess.run(
|
||||
[
|
||||
"diff",
|
||||
# allow for trailing whitespace since it's not significant
|
||||
# and the precommit hook will remove it
|
||||
"--ignore-trailing-space",
|
||||
tmp_filename,
|
||||
filename,
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user