Skip to content

Commit 07044f6

Browse files
committed
Add required tags, move description, rename
1 parent 3c758ce commit 07044f6

1 file changed

Lines changed: 34 additions & 7 deletions

File tree

openapi.yaml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,8 +3338,8 @@ paths:
33383338
name: model_name
33393339
schema:
33403340
type: string
3341+
description: Optional model name to check support for. If omitted, returns all supported models.
33413342
required: false
3342-
description: Optional model name to check support for. If omitted, returns all supported models.
33433343
responses:
33443344
'200':
33453345
description: Supported models or support status for a specific model.
@@ -3348,13 +3348,17 @@ paths:
33483348
schema:
33493349
oneOf:
33503350
- type: object
3351+
required:
3352+
- models
33513353
properties:
33523354
models:
33533355
type: array
33543356
items:
33553357
type: string
33563358
description: List of supported model names.
33573359
- type: object
3360+
required:
3361+
- supported
33583362
properties:
33593363
supported:
33603364
type: boolean
@@ -3363,7 +3367,7 @@ paths:
33633367
get:
33643368
tags: ['Fine-tuning']
33653369
summary: Get model limits
3366-
description: Get hyperparameter limits for a specific model.
3370+
description: Get model limits for a specific fine-tuning model.
33673371
x-codeSamples:
33683372
- lang: Shell
33693373
label: cURL
@@ -3375,15 +3379,15 @@ paths:
33753379
name: model_name
33763380
schema:
33773381
type: string
3382+
description: The model name to get limits for.
33783383
required: true
3379-
description: The model name to get limits for.
33803384
responses:
33813385
'200':
3382-
description: Model hyperparameter limits.
3386+
description: Model limits.
33833387
content:
33843388
application/json:
33853389
schema:
3386-
$ref: '#/components/schemas/HyperParameterLimits'
3390+
$ref: '#/components/schemas/FineTuneModelLimits'
33873391
'404':
33883392
description: Model not found or not supported for fine-tuning.
33893393
content:
@@ -10682,16 +10686,30 @@ components:
1068210686
message:
1068310687
type: string
1068410688
description: Message indicating the result of the deletion
10685-
HyperParameterLimits:
10689+
FineTuneModelLimits:
1068610690
type: object
10687-
description: Hyperparameter limits for a fine-tuning model.
10691+
description: Model limits for fine-tuning.
10692+
required:
10693+
- model_name
10694+
- max_num_epochs
10695+
- max_num_evals
10696+
- max_learning_rate
10697+
- min_learning_rate
10698+
- supports_vision
10699+
- supports_tools
10700+
- supports_reasoning
10701+
- merge_output_lora
1068810702
properties:
1068910703
model_name:
1069010704
type: string
1069110705
description: The name of the model.
1069210706
full_training:
1069310707
type: object
1069410708
description: Limits for full training.
10709+
required:
10710+
- max_batch_size
10711+
- max_batch_size_dpo
10712+
- min_batch_size
1069510713
properties:
1069610714
max_batch_size:
1069710715
type: integer
@@ -10705,6 +10723,12 @@ components:
1070510723
lora_training:
1070610724
type: object
1070710725
description: Limits for LoRA training.
10726+
required:
10727+
- max_batch_size
10728+
- max_batch_size_dpo
10729+
- min_batch_size
10730+
- max_rank
10731+
- target_modules
1070810732
properties:
1070910733
max_batch_size:
1071010734
type: integer
@@ -10744,6 +10768,9 @@ components:
1074410768
supports_reasoning:
1074510769
type: boolean
1074610770
description: Whether the model supports reasoning.
10771+
merge_output_lora:
10772+
type: boolean
10773+
description: Whether to merge the output LoRA.
1074710774
FinetuneJobStatus:
1074810775
type: string
1074910776
enum:

0 commit comments

Comments
 (0)