Skip to content

Commit

Permalink
Merge pull request #1 from offirt/patch-1
Browse files Browse the repository at this point in the history
Fixing Modify Assistant API, should provide assistant Id in the URL path
  • Loading branch information
skyscrapr authored May 26, 2024
2 parents bcb9f84 + 30ddc82 commit 73ce6d7
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 73ce6d7

Please sign in to comment.