Skip to content

Commit 959169a

Browse files
authored
Merge pull request #31 from coze-dev/feat/ts2ds_audio_video
feat: update spec for audio & video
2 parents 1be376d + ef5fa7d commit 959169a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

spec/tracespec/model.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ type ModelMessagePart struct {
4848
Text string `json:"text,omitempty"`
4949
ImageURL *ModelImageURL `json:"image_url,omitempty"`
5050
FileURL *ModelFileURL `json:"file_url,omitempty"`
51+
AudioURL *ModelAudioURL `json:"audio_url,omitempty"`
52+
VideoURL *ModelVideoURL `json:"video_url,omitempty"`
5153
}
5254

5355
type ModelMessagePartType string
@@ -56,6 +58,8 @@ var (
5658
ModelMessagePartTypeText ModelMessagePartType = "text"
5759
ModelMessagePartTypeImage ModelMessagePartType = "image_url"
5860
ModelMessagePartTypeFile ModelMessagePartType = "file_url"
61+
ModelMessagePartTypeAudio ModelMessagePartType = "audio_url"
62+
ModelMessagePartTypeVideo ModelMessagePartType = "video_url"
5963
)
6064

6165
type ModelImageURL struct {
@@ -75,6 +79,17 @@ type ModelFileURL struct {
7579
Suffix string `json:"suffix,omitempty"`
7680
}
7781

82+
type ModelAudioURL struct {
83+
Name string `json:"name,omitempty"`
84+
// Required. You can enter a valid audio URL of audio.
85+
URL string `json:"url,omitempty"`
86+
}
87+
88+
type ModelVideoURL struct {
89+
Name string `json:"name,omitempty"`
90+
// Required. You can enter a valid video URL of video.
91+
URL string `json:"url,omitempty"`
92+
}
7893
type ModelToolCall struct {
7994
ID string `json:"id,omitempty"`
8095
Type string `json:"type,omitempty"` // Always be: "function"

0 commit comments

Comments
 (0)