Skip to content

Commit 5ebd614

Browse files
committed
Rename ChatMessagePartFile to ChatMessageFile
Refactored struct name for file parts in chat messages from ChatMessagePartFile to ChatMessageFile for consistency and clarity.
1 parent 16e8cff commit 5ebd614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ type ChatMessageImageURL struct {
8282
}
8383

8484
// ChatMessagePartFile is a placeholder for file parts in chat messages.
85-
type ChatMessagePartFile struct {
85+
type ChatMessageFile struct {
8686
FileID string `json:"file_id,omitempty"`
8787
FileName string `json:"filename,omitempty"`
8888
FileData string `json:"file_data,omitempty"` // Base64 encoded file data
@@ -100,7 +100,7 @@ type ChatMessagePart struct {
100100
Type ChatMessagePartType `json:"type,omitempty"`
101101
Text string `json:"text,omitempty"`
102102
ImageURL *ChatMessageImageURL `json:"image_url,omitempty"`
103-
File *ChatMessagePartFile `json:"file,omitempty"`
103+
File *ChatMessageFile `json:"file,omitempty"`
104104
}
105105

106106
type ChatCompletionMessage struct {

0 commit comments

Comments
 (0)