Skip to content

Commit 4da5c2b

Browse files
committed
added disable checker
1 parent fcda3ac commit 4da5c2b

1 file changed

Lines changed: 40 additions & 34 deletions

File tree

openapi.yaml

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ paths:
373373
scale:
374374
type: number
375375
description: The strength of the LoRA's influence. Most LoRA's recommend a value of 1.
376+
disable_safety_checker:
377+
type: boolean
378+
description: If true, disables the safety checker for image generation.
376379
responses:
377380
'200':
378381
description: Image generated successfully
@@ -1252,7 +1255,7 @@ paths:
12521255
description: Job ID
12531256
schema:
12541257
type: string
1255-
example: "batch_job_abc123def456"
1258+
example: 'batch_job_abc123def456'
12561259
responses:
12571260
'200':
12581261
description: OK
@@ -1424,7 +1427,12 @@ components:
14241427
}
14251428
usage:
14261429
$ref: '#/components/schemas/UsageData'
1427-
example: { 'prompt_tokens': 1837, 'completion_tokens': 0, 'total_tokens': 1837 }
1430+
example:
1431+
{
1432+
'prompt_tokens': 1837,
1433+
'completion_tokens': 0,
1434+
'total_tokens': 1837,
1435+
}
14281436

14291437
ErrorData:
14301438
type: object
@@ -2322,7 +2330,7 @@ components:
23222330
b64:
23232331
type: string
23242332
description: base64 encoded audio stream
2325-
2333+
23262334
StreamSentinel:
23272335
type: object
23282336
required: [data]
@@ -2560,7 +2568,7 @@ components:
25602568
example: 'huggingface'
25612569
message:
25622570
type: string
2563-
example: 'Processing model weights. Job created.'
2571+
example: 'Processing model weights. Job created.'
25642572

25652573
ImageResponse:
25662574
type: object
@@ -2594,7 +2602,6 @@ components:
25942602
b64_json:
25952603
type: string
25962604

2597-
25982605
ImageResponseDataUrl:
25992606
type: object
26002607
required: [index, url]
@@ -2604,7 +2611,6 @@ components:
26042611
url:
26052612
type: string
26062613

2607-
26082614
JobInfoSuccessResponse:
26092615
type: object
26102616
required:
@@ -2928,18 +2934,18 @@ components:
29282934
example:
29292935
id: ft-01234567890123456789
29302936
status: completed
2931-
created_at: "2023-05-17T17:35:45.123Z"
2932-
updated_at: "2023-05-17T18:46:23.456Z"
2933-
user_id: "user_01234567890123456789"
2934-
owner_address: "user@example.com"
2937+
created_at: '2023-05-17T17:35:45.123Z'
2938+
updated_at: '2023-05-17T18:46:23.456Z'
2939+
user_id: 'user_01234567890123456789'
2940+
owner_address: 'user@example.com'
29352941
total_price: 1500
29362942
token_count: 850000
29372943
events: [] # FineTuneTruncated object has no events
2938-
model: "meta-llama/Llama-2-7b-hf"
2939-
model_output_name: "mynamespace/meta-llama/Llama-2-7b-hf-32162631"
2944+
model: 'meta-llama/Llama-2-7b-hf'
2945+
model_output_name: 'mynamespace/meta-llama/Llama-2-7b-hf-32162631'
29402946
n_epochs: 3
2941-
training_file: "file-01234567890123456789"
2942-
wandb_project_name: "my-finetune-project"
2947+
training_file: 'file-01234567890123456789'
2948+
wandb_project_name: 'my-finetune-project'
29432949
properties:
29442950
id:
29452951
type: string
@@ -3987,23 +3993,23 @@ components:
39873993
endpoint:
39883994
type: string
39893995
description: The endpoint to use for batch processing
3990-
example: "/v1/chat/completions"
3996+
example: '/v1/chat/completions'
39913997
input_file_id:
39923998
type: string
39933999
description: ID of the uploaded input file containing batch requests
3994-
example: "file-abc123def456ghi789"
4000+
example: 'file-abc123def456ghi789'
39954001
completion_window:
39964002
type: string
39974003
description: Time window for batch completion (optional)
3998-
example: "24h"
4004+
example: '24h'
39994005
priority:
40004006
type: integer
40014007
description: Priority for batch processing (optional)
40024008
example: 1
40034009
model_id:
40044010
type: string
4005-
description: "Model to use for processing batch requests"
4006-
example: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"
4011+
description: 'Model to use for processing batch requests'
4012+
example: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
40074013
BatchErrorResponse:
40084014
type: object
40094015
properties:
@@ -4022,52 +4028,52 @@ components:
40224028
id:
40234029
type: string
40244030
format: uuid
4025-
example: "01234567-8901-2345-6789-012345678901"
4031+
example: '01234567-8901-2345-6789-012345678901'
40264032
user_id:
40274033
type: string
4028-
example: "user_789xyz012"
4034+
example: 'user_789xyz012'
40294035
input_file_id:
40304036
type: string
4031-
example: "file-input123abc456def"
4037+
example: 'file-input123abc456def'
40324038
file_size_bytes:
40334039
type: integer
40344040
format: int64
40354041
example: 1048576
4036-
description: "Size of input file in bytes"
4042+
description: 'Size of input file in bytes'
40374043
status:
40384044
$ref: '#/components/schemas/BatchJobStatus'
40394045
job_deadline:
40404046
type: string
40414047
format: date-time
4042-
example: "2024-01-15T15:30:00Z"
4048+
example: '2024-01-15T15:30:00Z'
40434049
created_at:
40444050
type: string
40454051
format: date-time
4046-
example: "2024-01-15T14:30:00Z"
4052+
example: '2024-01-15T14:30:00Z'
40474053
endpoint:
40484054
type: string
4049-
example: "/v1/chat/completions"
4055+
example: '/v1/chat/completions'
40504056
progress:
40514057
type: number
40524058
format: float64
40534059
example: 75.0
4054-
description: "Completion progress (0.0 to 100)"
4060+
description: 'Completion progress (0.0 to 100)'
40554061
model_id:
40564062
type: string
4057-
example: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"
4058-
description: "Model used for processing requests"
4063+
example: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
4064+
description: 'Model used for processing requests'
40594065
output_file_id:
40604066
type: string
4061-
example: "file-output789xyz012ghi"
4067+
example: 'file-output789xyz012ghi'
40624068
error_file_id:
40634069
type: string
4064-
example: "file-errors456def789jkl"
4070+
example: 'file-errors456def789jkl'
40654071
error:
40664072
type: string
40674073
completed_at:
40684074
type: string
40694075
format: date-time
4070-
example: "2024-01-15T15:45:30Z"
4076+
example: '2024-01-15T15:45:30Z'
40714077
BatchJobStatus:
40724078
type: string
40734079
enum:
@@ -4077,5 +4083,5 @@ components:
40774083
- FAILED
40784084
- EXPIRED
40794085
- CANCELLED
4080-
example: "IN_PROGRESS"
4081-
description: "Current status of the batch job"
4086+
example: 'IN_PROGRESS'
4087+
description: 'Current status of the batch job'

0 commit comments

Comments
 (0)