Skip to content

Commit 46e1589

Browse files
authored
Merge pull request #180 from togethercomputer/artekchumak/progress-bar
Add progress bar field to Finetuning API Response
2 parents 767087e + f083fe3 commit 46e1589

File tree

1 file changed

+33
-16
lines changed

1 file changed

+33
-16
lines changed

openapi.yaml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ paths:
173173
# Docs for v2 can be found by changing the above selector ^
174174
from together import Together
175175
import os
176-
176+
177177
client = Together(
178178
api_key=os.environ.get("TOGETHER_API_KEY"),
179179
)
@@ -208,7 +208,7 @@ paths:
208208
const client = new Together({
209209
apiKey: process.env.TOGETHER_API_KEY,
210210
});
211-
211+
212212
const response = await client.videos.create({
213213
model: "together/video-model",
214214
prompt: "A cartoon of an astronaut riding a horse on the moon",
@@ -2897,7 +2897,7 @@ paths:
28972897
audio_data = bytearray()
28982898
async for message in ws:
28992899
data = json.loads(message)
2900-
2900+
29012901
if data["type"] == "conversation.item.input_text.received":
29022902
print(f"Text received: {data['text']}")
29032903
elif data["type"] == "conversation.item.audio_output.delta":
@@ -2947,7 +2947,7 @@ paths:
29472947
29482948
if (message.type === 'session.created') {
29492949
console.log(`Session created: ${message.session.id}`);
2950-
2950+
29512951
// Send text chunks
29522952
const textChunks = [
29532953
"Hello, this is a test.",
@@ -3017,7 +3017,7 @@ paths:
30173017
type: string
30183018
default: tara
30193019
description: |
3020-
The voice to use for speech generation. Default is 'tara'.
3020+
The voice to use for speech generation. Default is 'tara'.
30213021
Available voices vary by model. Can also be updated via `tts_session.updated` event.
30223022
- in: query
30233023
name: max_partial_length
@@ -3026,7 +3026,7 @@ paths:
30263026
type: integer
30273027
default: 250
30283028
description: |
3029-
Maximum number of characters in partial text before forcing TTS generation
3029+
Maximum number of characters in partial text before forcing TTS generation
30303030
even without a sentence ending. Helps reduce latency for long text without punctuation.
30313031
responses:
30323032
'101':
@@ -5336,8 +5336,8 @@ components:
53365336
type: string
53375337
name:
53385338
type: string
5339-
5340-
ListAvailibilityZonesResponse:
5339+
5340+
ListAvailibilityZonesResponse:
53415341
description: List of unique availability zones
53425342
type: object
53435343
required: ['avzones']
@@ -5346,7 +5346,7 @@ components:
53465346
type: array
53475347
items:
53485348
type: string
5349-
5349+
53505350
RerankRequest:
53515351
type: object
53525352
properties:
@@ -7462,6 +7462,8 @@ components:
74627462
type: string
74637463
hf_model_revision:
74647464
type: string
7465+
progress:
7466+
$ref: '#/components/schemas/FineTuneProgress'
74657467

74667468
FinetuneResponseTruncated:
74677469
type: object
@@ -7588,6 +7590,9 @@ components:
75887590
hf_model_revision:
75897591
type: string
75907592
description: The revision of the Hugging Face Hub model to continue training from
7593+
progress:
7594+
$ref: '#/components/schemas/FineTuneProgress'
7595+
description: Progress information for the fine-tuning job
75917596
FinetuneDeleteResponse:
75927597
type: object
75937598
properties:
@@ -7711,7 +7716,19 @@ components:
77117716
type: integer
77127717
hash:
77137718
type: string
7714-
7719+
FineTuneProgress:
7720+
type: object
7721+
description: Progress information for a fine-tuning job
7722+
required:
7723+
- estimate_available
7724+
- seconds_remaining
7725+
properties:
7726+
estimate_available:
7727+
type: boolean
7728+
description: Whether time estimate is available
7729+
seconds_remaining:
7730+
type: integer
7731+
description: Estimated time remaining in seconds for the fine-tuning job to next state
77157732
FinetuneListCheckpoints:
77167733
type: object
77177734
required:
@@ -9042,7 +9059,7 @@ components:
90429059
type: string
90439060
description: Similar to prompt, but specifies what to avoid instead of what to include
90449061
frame_images:
9045-
description: Array of images to guide video generation, similar to keyframes.
9062+
description: Array of images to guide video generation, similar to keyframes.
90469063
example:
90479064
- [
90489065
{
@@ -9109,13 +9126,13 @@ components:
91099126
description: The object type, which is always video.
91109127
type: string
91119128
enum:
9112-
- video
9113-
model:
9129+
- video
9130+
model:
91149131
type: string
91159132
description: The video generation model that produced the job.
91169133
status:
91179134
$ref: '#/components/schemas/VideoStatus'
9118-
description: Current lifecycle status of the video job.
9135+
description: Current lifecycle status of the video job.
91199136
created_at:
91209137
type: number
91219138
description: Unix timestamp (seconds) for when the job was created.
@@ -9132,9 +9149,9 @@ components:
91329149
description: Error payload that explains why generation failed, if applicable.
91339150
type: object
91349151
properties:
9135-
code:
9152+
code:
91369153
type: string
9137-
message:
9154+
message:
91389155
type: string
91399156
required:
91409157
- message

0 commit comments

Comments
 (0)