Skip to content

Commit

Permalink
bug: don't 404 for files when things haven't been created yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Dec 18, 2024
1 parent 672dba5 commit 4deac11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/api/handlers/assistants.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ func (a *AssistantHandler) Events(req api.Context) error {

func (a *AssistantHandler) Files(req api.Context) error {
thread, err := getThreadForScope(req)
if err != nil {
if apierrors.IsNotFound(err) {
return req.Write(types.FileList{Items: []types.File{}})
} else if err != nil {
return err
}

Expand Down

0 comments on commit 4deac11

Please sign in to comment.