mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
docs: API spec generation for Stainless (#3655)
# What does this PR do? * Adds stainless-llama-stack-spec.yaml for Stainless client generation, which comprises stable + experimental APIs ## Test Plan * Manual generation
This commit is contained in:
parent
7545e6f669
commit
ae9e1c80b5
4 changed files with 31513 additions and 2 deletions
|
@ -948,6 +948,10 @@ class Generator:
|
|||
# Include only deprecated endpoints
|
||||
if deprecated:
|
||||
filtered_operations.append(op)
|
||||
elif self.options.stability_filter == "stainless":
|
||||
# Include both stable (v1 non-deprecated) and experimental (v1alpha, v1beta) endpoints
|
||||
if (stability_level == "v1" and not deprecated) or stability_level in ["v1alpha", "v1beta"]:
|
||||
filtered_operations.append(op)
|
||||
|
||||
operations = filtered_operations
|
||||
print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue