diff --git a/polling.go b/polling.go index 7ee88911..7092fd2d 100644 --- a/polling.go +++ b/polling.go @@ -32,7 +32,7 @@ func (r *VectorStoreFileService) PollStatus(ctx context.Context, vectorStoreID s opts = append(opts, mkPollingOptions(pollIntervalMs)...) opts = append(opts, option.WithResponseInto(&raw)) for { - file, err := r.Get(ctx, fileID, vectorStoreID, opts...) + file, err := r.Get(ctx, vectorStoreID, fileID, opts...) if err != nil { return nil, fmt.Errorf("vector store file poll: received %w", err) }