@@ -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
@@ -2579,6 +2587,8 @@ components:
25792587 oneOf :
25802588 - $ref : ' #/components/schemas/ImageResponseDataB64'
25812589 - $ref : ' #/components/schemas/ImageResponseDataUrl'
2590+ discriminator :
2591+ propertyName : type
25822592 required :
25832593 - id
25842594 - model
@@ -2587,23 +2597,27 @@ components:
25872597
25882598 ImageResponseDataB64 :
25892599 type : object
2590- required : [index, b64_json]
2600+ required : [index, b64_json, type ]
25912601 properties :
25922602 index :
25932603 type : integer
25942604 b64_json :
25952605 type : string
2596-
2606+ type :
2607+ type : string
2608+ enum : [b64_json]
25972609
25982610 ImageResponseDataUrl :
25992611 type : object
2600- required : [index, url]
2612+ required : [index, url, type ]
26012613 properties :
26022614 index :
26032615 type : integer
26042616 url :
26052617 type : string
2606-
2618+ type :
2619+ type : string
2620+ enum : [url]
26072621
26082622 JobInfoSuccessResponse :
26092623 type : object
@@ -2928,18 +2942,18 @@ components:
29282942 example :
29292943 id : ft-01234567890123456789
29302944 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"
2945+ created_at : ' 2023-05-17T17:35:45.123Z'
2946+ updated_at : ' 2023-05-17T18:46:23.456Z'
2947+ user_id : ' user_01234567890123456789'
2948+ owner_address : ' user@example.com'
29352949 total_price : 1500
29362950 token_count : 850000
29372951 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"
2952+ model : ' meta-llama/Llama-2-7b-hf'
2953+ model_output_name : ' mynamespace/meta-llama/Llama-2-7b-hf-32162631'
29402954 n_epochs : 3
2941- training_file : " file-01234567890123456789"
2942- wandb_project_name : " my-finetune-project"
2955+ training_file : ' file-01234567890123456789'
2956+ wandb_project_name : ' my-finetune-project'
29432957 properties :
29442958 id :
29452959 type : string
@@ -3987,23 +4001,23 @@ components:
39874001 endpoint :
39884002 type : string
39894003 description : The endpoint to use for batch processing
3990- example : " /v1/chat/completions"
4004+ example : ' /v1/chat/completions'
39914005 input_file_id :
39924006 type : string
39934007 description : ID of the uploaded input file containing batch requests
3994- example : " file-abc123def456ghi789"
4008+ example : ' file-abc123def456ghi789'
39954009 completion_window :
39964010 type : string
39974011 description : Time window for batch completion (optional)
3998- example : " 24h"
4012+ example : ' 24h'
39994013 priority :
40004014 type : integer
40014015 description : Priority for batch processing (optional)
40024016 example : 1
40034017 model_id :
40044018 type : string
4005- description : " Model to use for processing batch requests"
4006- example : " meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"
4019+ description : ' Model to use for processing batch requests'
4020+ example : ' meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
40074021 BatchErrorResponse :
40084022 type : object
40094023 properties :
@@ -4022,52 +4036,52 @@ components:
40224036 id :
40234037 type : string
40244038 format : uuid
4025- example : " 01234567-8901-2345-6789-012345678901"
4039+ example : ' 01234567-8901-2345-6789-012345678901'
40264040 user_id :
40274041 type : string
4028- example : " user_789xyz012"
4042+ example : ' user_789xyz012'
40294043 input_file_id :
40304044 type : string
4031- example : " file-input123abc456def"
4045+ example : ' file-input123abc456def'
40324046 file_size_bytes :
40334047 type : integer
40344048 format : int64
40354049 example : 1048576
4036- description : " Size of input file in bytes"
4050+ description : ' Size of input file in bytes'
40374051 status :
40384052 $ref : ' #/components/schemas/BatchJobStatus'
40394053 job_deadline :
40404054 type : string
40414055 format : date-time
4042- example : " 2024-01-15T15:30:00Z"
4056+ example : ' 2024-01-15T15:30:00Z'
40434057 created_at :
40444058 type : string
40454059 format : date-time
4046- example : " 2024-01-15T14:30:00Z"
4060+ example : ' 2024-01-15T14:30:00Z'
40474061 endpoint :
40484062 type : string
4049- example : " /v1/chat/completions"
4063+ example : ' /v1/chat/completions'
40504064 progress :
40514065 type : number
40524066 format : float64
40534067 example : 75.0
4054- description : " Completion progress (0.0 to 100)"
4068+ description : ' Completion progress (0.0 to 100)'
40554069 model_id :
40564070 type : string
4057- example : " meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"
4058- description : " Model used for processing requests"
4071+ example : ' meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo'
4072+ description : ' Model used for processing requests'
40594073 output_file_id :
40604074 type : string
4061- example : " file-output789xyz012ghi"
4075+ example : ' file-output789xyz012ghi'
40624076 error_file_id :
40634077 type : string
4064- example : " file-errors456def789jkl"
4078+ example : ' file-errors456def789jkl'
40654079 error :
40664080 type : string
40674081 completed_at :
40684082 type : string
40694083 format : date-time
4070- example : " 2024-01-15T15:45:30Z"
4084+ example : ' 2024-01-15T15:45:30Z'
40714085 BatchJobStatus :
40724086 type : string
40734087 enum :
@@ -4077,5 +4091,5 @@ components:
40774091 - FAILED
40784092 - EXPIRED
40794093 - CANCELLED
4080- example : " IN_PROGRESS"
4081- description : " Current status of the batch job"
4094+ example : ' IN_PROGRESS'
4095+ description : ' Current status of the batch job'
0 commit comments