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 <825708370@qq.com>
This commit is contained in:
3
files.go
3
files.go
@@ -22,8 +22,9 @@ type File struct {
|
|||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
FileName string `json:"filename"`
|
FileName string `json:"filename"`
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
Owner string `json:"owner"`
|
Status string `json:"status"`
|
||||||
Purpose string `json:"purpose"`
|
Purpose string `json:"purpose"`
|
||||||
|
StatusDetails string `json:"status_details"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FilesList is a list of files that belong to the user or organization.
|
// FilesList is a list of files that belong to the user or organization.
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ func handleCreateFile(w http.ResponseWriter, r *http.Request) {
|
|||||||
Purpose: purpose,
|
Purpose: purpose,
|
||||||
CreatedAt: time.Now().Unix(),
|
CreatedAt: time.Now().Unix(),
|
||||||
Object: "test-objecct",
|
Object: "test-objecct",
|
||||||
Owner: "test-owner",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resBytes, _ = json.Marshal(fileReq)
|
resBytes, _ = json.Marshal(fileReq)
|
||||||
|
|||||||
Reference in New Issue
Block a user