Skip to content

Commit 3589837

Browse files
NullpointerWW
andauthored
Update OpenAPI file return struct (#486)
* completionBatchingRequestSupport * lint fix * fix Run test fail * fix TestClientReturnsRequestBuilderErrors fail * fix Codecov check * ignore TestClientReturnsRequestBuilderErrors lint * fix lint again * lint again*2 * replace checkPromptType implementation * remove nil check * update file return struct --------- Co-authored-by: W <[email protected]>
1 parent 25da859 commit 3589837

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

files.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ type FileRequest struct {
1717

1818
// File struct represents an OpenAPI file.
1919
type File struct {
20-
Bytes int `json:"bytes"`
21-
CreatedAt int64 `json:"created_at"`
22-
ID string `json:"id"`
23-
FileName string `json:"filename"`
24-
Object string `json:"object"`
25-
Owner string `json:"owner"`
26-
Purpose string `json:"purpose"`
20+
Bytes int `json:"bytes"`
21+
CreatedAt int64 `json:"created_at"`
22+
ID string `json:"id"`
23+
FileName string `json:"filename"`
24+
Object string `json:"object"`
25+
Status string `json:"status"`
26+
Purpose string `json:"purpose"`
27+
StatusDetails string `json:"status_details"`
2728
}
2829

2930
// FilesList is a list of files that belong to the user or organization.

files_api_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func handleCreateFile(w http.ResponseWriter, r *http.Request) {
6464
Purpose: purpose,
6565
CreatedAt: time.Now().Unix(),
6666
Object: "test-objecct",
67-
Owner: "test-owner",
6867
}
6968

7069
resBytes, _ = json.Marshal(fileReq)

0 commit comments

Comments
 (0)