Skip to content

Commit

Permalink
fix: use AssistantDeleteResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Nov 8, 2023
1 parent b5e75ca commit 8781188
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ type AssistantsList struct {
httpHeader
}

type AssistantDeleteResponse struct {
ID string `json:"id"`
Object string `json:"object"`
Deleted bool `json:"deleted"`

httpHeader
}

type AssistantFile struct {
ID string `json:"id"`
Object string `json:"object"`
Expand Down Expand Up @@ -124,7 +132,7 @@ func (c *Client) ModifyAssistant(
func (c *Client) DeleteAssistant(
ctx context.Context,
assistantID string,
) (response Assistant, err error) {
) (response AssistantDeleteResponse, err error) {
urlSuffix := fmt.Sprintf("%s/%s", assistantsSuffix, assistantID)
req, err := c.newRequest(ctx, http.MethodDelete, c.fullURL(urlSuffix),
withBetaAssistantV1())
Expand Down

0 comments on commit 8781188

Please sign in to comment.