Skip to content

Commit

Permalink
Fixing Modify Assistant API, should provide assistant Id in the URL path
Browse files Browse the repository at this point in the history
  • Loading branch information
offirt authored May 26, 2024
1 parent bcb9f84 commit 30ddc82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openai/assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func (e *AssistantsEndpoint) RetrieveAssistant(assistantId string) (*Assistant,
}

// Modifies an assistant.
func (e *AssistantsEndpoint) ModifyAssistant(req *AssistantRequest) (*Assistant, error) {
func (e *AssistantsEndpoint) ModifyAssistant(assistantId string, req *AssistantRequest) (*Assistant, error) {
var assistant Assistant
err := e.do(e, "POST", "", req, nil, &assistant)
err := e.do(e, "POST", assistantId, req, nil, &assistant)
return &assistant, err
}

Expand Down

0 comments on commit 30ddc82

Please sign in to comment.