diff --git a/client-sdks/stainless/openapi.yml b/client-sdks/stainless/openapi.yml index 4a27dbcd1..17fbc4789 100644 --- a/client-sdks/stainless/openapi.yml +++ b/client-sdks/stainless/openapi.yml @@ -3213,41 +3213,6 @@ paths: schema: type: string description: 'Path parameter: model_id' - delete: - tags: - - Models - summary: Unregister Model - description: |- - Unregister model. - - Unregister a model. - operationId: unregister_model_v1_models__model_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: model_id - in: path - required: true - schema: - type: string - description: 'Path parameter: model_id' /v1/models: get: tags: @@ -3274,41 +3239,6 @@ paths: default: description: Default Response $ref: '#/components/responses/DefaultError' - post: - tags: - - Models - summary: Register Model - description: |- - Register model. - - Register a model. - operationId: register_model_v1_models_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_models_Request' - required: true - responses: - '200': - description: A Model. - content: - application/json: - schema: - $ref: '#/components/schemas/Model' - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true /v1/moderations: post: tags: @@ -3412,38 +3342,6 @@ paths: schema: type: string description: 'Path parameter: identifier' - delete: - tags: - - Shields - summary: Unregister Shield - description: Unregister a shield. - operationId: unregister_shield_v1_shields__identifier__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: identifier - in: path - required: true - schema: - type: string - description: 'Path parameter: identifier' /v1/shields: get: tags: @@ -3470,38 +3368,6 @@ paths: default: description: Default Response $ref: '#/components/responses/DefaultError' - post: - tags: - - Shields - summary: Register Shield - description: Register a shield. - operationId: register_shield_v1_shields_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_shields_Request' - required: true - responses: - '200': - description: A Shield. - content: - application/json: - schema: - $ref: '#/components/schemas/Shield' - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true /v1beta/datasetio/append-rows/{dataset_id}: post: tags: @@ -3635,38 +3501,6 @@ paths: schema: type: string description: 'Path parameter: dataset_id' - delete: - tags: - - Datasets - summary: Unregister Dataset - description: Unregister a dataset by its ID. - operationId: unregister_dataset_v1beta_datasets__dataset_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: dataset_id - in: path - required: true - schema: - type: string - description: 'Path parameter: dataset_id' /v1beta/datasets: get: tags: @@ -3693,38 +3527,6 @@ paths: default: description: Default Response $ref: '#/components/responses/DefaultError' - post: - tags: - - Datasets - summary: Register Dataset - description: Register a new dataset. - operationId: register_dataset_v1beta_datasets_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_datasets_Request' - required: true - responses: - '200': - description: A Dataset. - content: - application/json: - schema: - $ref: '#/components/schemas/Dataset' - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true /v1/scoring/score: post: tags: @@ -3822,38 +3624,6 @@ paths: schema: type: string description: 'Path parameter: scoring_fn_id' - delete: - tags: - - Scoring Functions - summary: Unregister Scoring Function - description: Unregister a scoring function. - operationId: unregister_scoring_function_v1_scoring_functions__scoring_fn_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: scoring_fn_id - in: path - required: true - schema: - type: string - description: 'Path parameter: scoring_fn_id' /v1/scoring-functions: get: tags: @@ -3880,37 +3650,6 @@ paths: default: $ref: '#/components/responses/DefaultError' description: Default Response - post: - tags: - - Scoring Functions - summary: Register Scoring Function - description: Register a scoring function. - operationId: register_scoring_function_v1_scoring_functions_post - deprecated: true - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/Body_register_scoring_function_v1_scoring_functions_post' - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - $ref: '#/components/responses/BadRequest400' - description: Bad Request - '429': - $ref: '#/components/responses/TooManyRequests429' - description: Too Many Requests - '500': - $ref: '#/components/responses/InternalServerError500' - description: Internal Server Error - default: - $ref: '#/components/responses/DefaultError' - description: Default Response /v1alpha/eval/benchmarks/{benchmark_id}/evaluations: post: tags: @@ -4137,38 +3876,6 @@ paths: schema: type: string description: 'Path parameter: benchmark_id' - delete: - tags: - - Benchmarks - summary: Unregister Benchmark - description: Unregister a benchmark. - operationId: unregister_benchmark_v1alpha_eval_benchmarks__benchmark_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: benchmark_id - in: path - required: true - schema: - type: string - description: 'Path parameter: benchmark_id' /v1alpha/eval/benchmarks: get: tags: @@ -4195,37 +3902,6 @@ paths: default: $ref: '#/components/responses/DefaultError' description: Default Response - post: - tags: - - Benchmarks - summary: Register Benchmark - description: Register a benchmark. - operationId: register_benchmark_v1alpha_eval_benchmarks_post - deprecated: true - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/Body_register_benchmark_v1alpha_eval_benchmarks_post' - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - $ref: '#/components/responses/BadRequest400' - description: Bad Request - '429': - $ref: '#/components/responses/TooManyRequests429' - description: Too Many Requests - '500': - $ref: '#/components/responses/InternalServerError500' - description: Internal Server Error - default: - $ref: '#/components/responses/DefaultError' - description: Default Response /v1alpha/post-training/job/cancel: post: tags: @@ -4480,38 +4156,6 @@ paths: schema: type: string description: 'Path parameter: toolgroup_id' - delete: - tags: - - Tool Groups - summary: Unregister Toolgroup - description: Unregister a tool group. - operationId: unregister_toolgroup_v1_toolgroups__toolgroup_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: toolgroup_id - in: path - required: true - schema: - type: string - description: 'Path parameter: toolgroup_id' /v1/toolgroups: get: tags: @@ -4538,36 +4182,6 @@ paths: default: $ref: '#/components/responses/DefaultError' description: Default Response - post: - tags: - - Tool Groups - summary: Register Tool Group - description: Register a tool group. - operationId: register_tool_group_v1_toolgroups_post - deprecated: true - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Body_register_tool_group_v1_toolgroups_post' - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - $ref: '#/components/responses/BadRequest400' - description: Bad Request - '429': - $ref: '#/components/responses/TooManyRequests429' - description: Too Many Requests - '500': - $ref: '#/components/responses/InternalServerError500' - description: Internal Server Error - default: - $ref: '#/components/responses/DefaultError' - description: Default Response /v1/tools: get: tags: @@ -5819,82 +5433,6 @@ components: - file - purpose title: Body_openai_upload_file_v1_files_post - Body_register_benchmark_v1alpha_eval_benchmarks_post: - properties: - scoring_functions: - items: - type: string - type: array - title: Scoring Functions - metadata: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - type: object - required: - - scoring_functions - title: Body_register_benchmark_v1alpha_eval_benchmarks_post - Body_register_scoring_function_v1_scoring_functions_post: - properties: - return_type: - anyOf: - - $ref: '#/components/schemas/StringType' - title: StringType - - $ref: '#/components/schemas/NumberType' - title: NumberType - - $ref: '#/components/schemas/BooleanType' - title: BooleanType - - $ref: '#/components/schemas/ArrayType' - title: ArrayType - - $ref: '#/components/schemas/ObjectType' - title: ObjectType - - $ref: '#/components/schemas/JsonType' - title: JsonType - - $ref: '#/components/schemas/UnionType' - title: UnionType - - $ref: '#/components/schemas/ChatCompletionInputType' - title: ChatCompletionInputType - - $ref: '#/components/schemas/CompletionInputType' - title: CompletionInputType - title: StringType | ... (9 variants) - params: - anyOf: - - oneOf: - - $ref: '#/components/schemas/LLMAsJudgeScoringFnParams' - title: LLMAsJudgeScoringFnParams - - $ref: '#/components/schemas/RegexParserScoringFnParams' - title: RegexParserScoringFnParams - - $ref: '#/components/schemas/BasicScoringFnParams' - title: BasicScoringFnParams - discriminator: - propertyName: type - mapping: - basic: '#/components/schemas/BasicScoringFnParams' - llm_as_judge: '#/components/schemas/LLMAsJudgeScoringFnParams' - regex_parser: '#/components/schemas/RegexParserScoringFnParams' - title: LLMAsJudgeScoringFnParams | RegexParserScoringFnParams | BasicScoringFnParams - - type: 'null' - title: Params - type: object - required: - - return_type - title: Body_register_scoring_function_v1_scoring_functions_post - Body_register_tool_group_v1_toolgroups_post: - properties: - mcp_endpoint: - anyOf: - - $ref: '#/components/schemas/URL' - title: URL - - type: 'null' - title: URL - args: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - type: object - title: Body_register_tool_group_v1_toolgroups_post BooleanType: properties: type: @@ -10997,21 +10535,6 @@ components: required: - items title: _conversations_conversation_id_items_Request - _datasets_Request: - properties: - purpose: - title: Purpose - source: - title: Source - metadata: - title: Metadata - dataset_id: - title: Dataset Id - type: object - required: - - purpose - - source - title: _datasets_Request _eval_benchmarks_benchmark_id_evaluations_Request: properties: input_rows: @@ -11067,34 +10590,6 @@ components: - query - items title: _inference_rerank_Request - _models_Request: - properties: - model_id: - type: string - title: Model Id - provider_model_id: - anyOf: - - type: string - - type: 'null' - provider_id: - anyOf: - - type: string - - type: 'null' - metadata: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - model_type: - anyOf: - - $ref: '#/components/schemas/ModelType' - title: ModelType - - type: 'null' - title: ModelType - type: object - required: - - model_id - title: _models_Request _moderations_Request: properties: input: @@ -11400,28 +10895,6 @@ components: - dataset_id - scoring_functions title: _scoring_score_batch_Request - _shields_Request: - properties: - shield_id: - type: string - title: Shield Id - provider_shield_id: - anyOf: - - type: string - - type: 'null' - provider_id: - anyOf: - - type: string - - type: 'null' - params: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - type: object - required: - - shield_id - title: _shields_Request _tool_runtime_invoke_Request: properties: tool_name: diff --git a/docs/static/stainless-llama-stack-spec.yaml b/docs/static/stainless-llama-stack-spec.yaml index 24c2d2e45..d794ded03 100644 --- a/docs/static/stainless-llama-stack-spec.yaml +++ b/docs/static/stainless-llama-stack-spec.yaml @@ -3179,41 +3179,6 @@ paths: schema: type: string description: 'Path parameter: model_id' - delete: - tags: - - Models - summary: Unregister Model - description: |- - Unregister model. - - Unregister a model. - operationId: unregister_model_v1_models__model_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: model_id - in: path - required: true - schema: - type: string - description: 'Path parameter: model_id' /v1/models: get: tags: @@ -3240,41 +3205,6 @@ paths: default: description: Default Response $ref: '#/components/responses/DefaultError' - post: - tags: - - Models - summary: Register Model - description: |- - Register model. - - Register a model. - operationId: register_model_v1_models_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_models_Request' - required: true - responses: - '200': - description: A Model. - content: - application/json: - schema: - $ref: '#/components/schemas/Model' - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true /v1/moderations: post: tags: @@ -3378,38 +3308,6 @@ paths: schema: type: string description: 'Path parameter: identifier' - delete: - tags: - - Shields - summary: Unregister Shield - description: Unregister a shield. - operationId: unregister_shield_v1_shields__identifier__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: identifier - in: path - required: true - schema: - type: string - description: 'Path parameter: identifier' /v1/shields: get: tags: @@ -3436,38 +3334,6 @@ paths: default: description: Default Response $ref: '#/components/responses/DefaultError' - post: - tags: - - Shields - summary: Register Shield - description: Register a shield. - operationId: register_shield_v1_shields_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_shields_Request' - required: true - responses: - '200': - description: A Shield. - content: - application/json: - schema: - $ref: '#/components/schemas/Shield' - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true /v1beta/datasetio/append-rows/{dataset_id}: post: tags: @@ -3601,38 +3467,6 @@ paths: schema: type: string description: 'Path parameter: dataset_id' - delete: - tags: - - Datasets - summary: Unregister Dataset - description: Unregister a dataset by its ID. - operationId: unregister_dataset_v1beta_datasets__dataset_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: dataset_id - in: path - required: true - schema: - type: string - description: 'Path parameter: dataset_id' /v1beta/datasets: get: tags: @@ -3659,38 +3493,6 @@ paths: default: description: Default Response $ref: '#/components/responses/DefaultError' - post: - tags: - - Datasets - summary: Register Dataset - description: Register a new dataset. - operationId: register_dataset_v1beta_datasets_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_datasets_Request' - required: true - responses: - '200': - description: A Dataset. - content: - application/json: - schema: - $ref: '#/components/schemas/Dataset' - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true /v1/scoring/score: post: tags: @@ -3788,38 +3590,6 @@ paths: schema: type: string description: 'Path parameter: scoring_fn_id' - delete: - tags: - - Scoring Functions - summary: Unregister Scoring Function - description: Unregister a scoring function. - operationId: unregister_scoring_function_v1_scoring_functions__scoring_fn_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: scoring_fn_id - in: path - required: true - schema: - type: string - description: 'Path parameter: scoring_fn_id' /v1/scoring-functions: get: tags: @@ -3846,37 +3616,6 @@ paths: default: $ref: '#/components/responses/DefaultError' description: Default Response - post: - tags: - - Scoring Functions - summary: Register Scoring Function - description: Register a scoring function. - operationId: register_scoring_function_v1_scoring_functions_post - deprecated: true - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/Body_register_scoring_function_v1_scoring_functions_post' - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - $ref: '#/components/responses/BadRequest400' - description: Bad Request - '429': - $ref: '#/components/responses/TooManyRequests429' - description: Too Many Requests - '500': - $ref: '#/components/responses/InternalServerError500' - description: Internal Server Error - default: - $ref: '#/components/responses/DefaultError' - description: Default Response /v1alpha/eval/benchmarks/{benchmark_id}/evaluations: post: tags: @@ -4103,38 +3842,6 @@ paths: schema: type: string description: 'Path parameter: benchmark_id' - delete: - tags: - - Benchmarks - summary: Unregister Benchmark - description: Unregister a benchmark. - operationId: unregister_benchmark_v1alpha_eval_benchmarks__benchmark_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: benchmark_id - in: path - required: true - schema: - type: string - description: 'Path parameter: benchmark_id' /v1alpha/eval/benchmarks: get: tags: @@ -4161,37 +3868,6 @@ paths: default: $ref: '#/components/responses/DefaultError' description: Default Response - post: - tags: - - Benchmarks - summary: Register Benchmark - description: Register a benchmark. - operationId: register_benchmark_v1alpha_eval_benchmarks_post - deprecated: true - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/Body_register_benchmark_v1alpha_eval_benchmarks_post' - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - $ref: '#/components/responses/BadRequest400' - description: Bad Request - '429': - $ref: '#/components/responses/TooManyRequests429' - description: Too Many Requests - '500': - $ref: '#/components/responses/InternalServerError500' - description: Internal Server Error - default: - $ref: '#/components/responses/DefaultError' - description: Default Response /v1alpha/post-training/job/cancel: post: tags: @@ -4446,38 +4122,6 @@ paths: schema: type: string description: 'Path parameter: toolgroup_id' - delete: - tags: - - Tool Groups - summary: Unregister Toolgroup - description: Unregister a tool group. - operationId: unregister_toolgroup_v1_toolgroups__toolgroup_id__delete - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - description: Bad Request - $ref: '#/components/responses/BadRequest400' - '429': - description: Too Many Requests - $ref: '#/components/responses/TooManyRequests429' - '500': - description: Internal Server Error - $ref: '#/components/responses/InternalServerError500' - default: - description: Default Response - $ref: '#/components/responses/DefaultError' - deprecated: true - parameters: - - name: toolgroup_id - in: path - required: true - schema: - type: string - description: 'Path parameter: toolgroup_id' /v1/toolgroups: get: tags: @@ -4504,36 +4148,6 @@ paths: default: $ref: '#/components/responses/DefaultError' description: Default Response - post: - tags: - - Tool Groups - summary: Register Tool Group - description: Register a tool group. - operationId: register_tool_group_v1_toolgroups_post - deprecated: true - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Body_register_tool_group_v1_toolgroups_post' - responses: - '200': - description: Successful Response - content: - application/json: - schema: {} - '400': - $ref: '#/components/responses/BadRequest400' - description: Bad Request - '429': - $ref: '#/components/responses/TooManyRequests429' - description: Too Many Requests - '500': - $ref: '#/components/responses/InternalServerError500' - description: Internal Server Error - default: - $ref: '#/components/responses/DefaultError' - description: Default Response /v1/tools: get: tags: @@ -5785,82 +5399,6 @@ components: - file - purpose title: Body_openai_upload_file_v1_files_post - Body_register_benchmark_v1alpha_eval_benchmarks_post: - properties: - scoring_functions: - items: - type: string - type: array - title: Scoring Functions - metadata: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - type: object - required: - - scoring_functions - title: Body_register_benchmark_v1alpha_eval_benchmarks_post - Body_register_scoring_function_v1_scoring_functions_post: - properties: - return_type: - anyOf: - - $ref: '#/components/schemas/StringType' - title: StringType - - $ref: '#/components/schemas/NumberType' - title: NumberType - - $ref: '#/components/schemas/BooleanType' - title: BooleanType - - $ref: '#/components/schemas/ArrayType' - title: ArrayType - - $ref: '#/components/schemas/ObjectType' - title: ObjectType - - $ref: '#/components/schemas/JsonType' - title: JsonType - - $ref: '#/components/schemas/UnionType' - title: UnionType - - $ref: '#/components/schemas/ChatCompletionInputType' - title: ChatCompletionInputType - - $ref: '#/components/schemas/CompletionInputType' - title: CompletionInputType - title: StringType | ... (9 variants) - params: - anyOf: - - oneOf: - - $ref: '#/components/schemas/LLMAsJudgeScoringFnParams' - title: LLMAsJudgeScoringFnParams - - $ref: '#/components/schemas/RegexParserScoringFnParams' - title: RegexParserScoringFnParams - - $ref: '#/components/schemas/BasicScoringFnParams' - title: BasicScoringFnParams - discriminator: - propertyName: type - mapping: - basic: '#/components/schemas/BasicScoringFnParams' - llm_as_judge: '#/components/schemas/LLMAsJudgeScoringFnParams' - regex_parser: '#/components/schemas/RegexParserScoringFnParams' - title: LLMAsJudgeScoringFnParams | RegexParserScoringFnParams | BasicScoringFnParams - - type: 'null' - title: Params - type: object - required: - - return_type - title: Body_register_scoring_function_v1_scoring_functions_post - Body_register_tool_group_v1_toolgroups_post: - properties: - mcp_endpoint: - anyOf: - - $ref: '#/components/schemas/URL' - title: URL - - type: 'null' - title: URL - args: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - type: object - title: Body_register_tool_group_v1_toolgroups_post BooleanType: properties: type: @@ -10963,21 +10501,6 @@ components: required: - items title: _conversations_conversation_id_items_Request - _datasets_Request: - properties: - purpose: - title: Purpose - source: - title: Source - metadata: - title: Metadata - dataset_id: - title: Dataset Id - type: object - required: - - purpose - - source - title: _datasets_Request _eval_benchmarks_benchmark_id_evaluations_Request: properties: input_rows: @@ -11033,34 +10556,6 @@ components: - query - items title: _inference_rerank_Request - _models_Request: - properties: - model_id: - type: string - title: Model Id - provider_model_id: - anyOf: - - type: string - - type: 'null' - provider_id: - anyOf: - - type: string - - type: 'null' - metadata: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - model_type: - anyOf: - - $ref: '#/components/schemas/ModelType' - title: ModelType - - type: 'null' - title: ModelType - type: object - required: - - model_id - title: _models_Request _moderations_Request: properties: input: @@ -11366,28 +10861,6 @@ components: - dataset_id - scoring_functions title: _scoring_score_batch_Request - _shields_Request: - properties: - shield_id: - type: string - title: Shield Id - provider_shield_id: - anyOf: - - type: string - - type: 'null' - provider_id: - anyOf: - - type: string - - type: 'null' - params: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - type: object - required: - - shield_id - title: _shields_Request _tool_runtime_invoke_Request: properties: tool_name: diff --git a/scripts/fastapi_generator.py b/scripts/fastapi_generator.py index b6e253158..08bd80efd 100755 --- a/scripts/fastapi_generator.py +++ b/scripts/fastapi_generator.py @@ -1895,21 +1895,21 @@ def _filter_deprecated_schema(openapi_schema: dict[str, Any]) -> dict[str, Any]: def _filter_combined_schema(openapi_schema: dict[str, Any]) -> dict[str, Any]: """ Filter OpenAPI schema to include both stable (v1) and experimental (v1alpha, v1beta) APIs. - Includes deprecated endpoints. This is used for the combined "stainless" spec. + Excludes deprecated endpoints. This is used for the combined "stainless" spec. """ filtered_schema = openapi_schema.copy() if "paths" not in filtered_schema: return filtered_schema - # Filter paths to include stable (v1) and experimental (v1alpha, v1beta), including deprecated + # Filter paths to include stable (v1) and experimental (v1alpha, v1beta), excluding deprecated filtered_paths = {} for path, path_item in filtered_schema["paths"].items(): if not isinstance(path_item, dict): continue - # Include all operations (both deprecated and non-deprecated) for the combined spec - # Filter at operation level to preserve the structure + # Filter at operation level, not path level + # This allows paths with both deprecated and non-deprecated operations filtered_path_item = {} for method in ["get", "post", "put", "delete", "patch", "head", "options"]: if method not in path_item: @@ -1918,10 +1918,13 @@ def _filter_combined_schema(openapi_schema: dict[str, Any]) -> dict[str, Any]: if not isinstance(operation, dict): continue - # Include all operations, including deprecated ones + # Skip deprecated operations + if operation.get("deprecated", False): + continue + filtered_path_item[method] = operation - # Only include path if it has at least one operation + # Only include path if it has at least one operation after filtering if filtered_path_item: # Check if path matches version filter (stable or experimental) if _is_stable_path(path) or _is_experimental_path(path):