Skip to content

Commit

Permalink
Update OpenAPI file return struct (#486)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
NullpointerW and W committed Sep 7, 2023
1 parent 25da859 commit 3589837
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 8 additions & 7 deletions files.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ type FileRequest struct {

// File struct represents an OpenAPI file.
type File struct {
Bytes int `json:"bytes"`
CreatedAt int64 `json:"created_at"`
ID string `json:"id"`
FileName string `json:"filename"`
Object string `json:"object"`
Owner string `json:"owner"`
Purpose string `json:"purpose"`
Bytes int `json:"bytes"`
CreatedAt int64 `json:"created_at"`
ID string `json:"id"`
FileName string `json:"filename"`
Object string `json:"object"`
Status string `json:"status"`
Purpose string `json:"purpose"`
StatusDetails string `json:"status_details"`
}

// FilesList is a list of files that belong to the user or organization.
Expand Down
1 change: 0 additions & 1 deletion files_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func handleCreateFile(w http.ResponseWriter, r *http.Request) {
Purpose: purpose,
CreatedAt: time.Now().Unix(),
Object: "test-objecct",
Owner: "test-owner",
}

resBytes, _ = json.Marshal(fileReq)
Expand Down

0 comments on commit 3589837

Please sign in to comment.