@@ -14,7 +14,7 @@ import (
1414
1515// NewListMessagesPager returns a pager for messages associated with a thread.
1616func (c * Client ) NewListMessagesPager (threadID string , options * ListMessagesOptions ) * runtime.Pager [ListMessagesResponse ] {
17- nextPageFn := func (client * Client , ctx context.Context , opts * ListMessagesOptions ) (ListMessagesResponse , error ) {
17+ nextPageFn := func (ctx context.Context , opts * ListMessagesOptions ) (ListMessagesResponse , error ) {
1818 return c .internalListMessages (ctx , threadID , opts )
1919 }
2020 return newOpenAIPager (c , nextPageFn , options )
@@ -26,7 +26,7 @@ func (r ListMessagesResponse) hasMore() bool { return *r.HasMore }
2626
2727// NewListAssistantsPager returns a pager for assistants.
2828func (c * Client ) NewListAssistantsPager (options * ListAssistantsOptions ) * runtime.Pager [ListAssistantsResponse ] {
29- nextPageFn := func (client * Client , ctx context.Context , opts * ListAssistantsOptions ) (ListAssistantsResponse , error ) {
29+ nextPageFn := func (ctx context.Context , opts * ListAssistantsOptions ) (ListAssistantsResponse , error ) {
3030 return c .internalListAssistants (ctx , opts )
3131 }
3232 return newOpenAIPager (c , nextPageFn , options )
@@ -38,7 +38,7 @@ func (r ListAssistantsResponse) hasMore() bool { return *r.HasMore }
3838
3939// NewListRunStepsPager returns a pager for a Run's steps.
4040func (c * Client ) NewListRunStepsPager (threadID string , runID string , options * ListRunStepsOptions ) * runtime.Pager [ListRunStepsResponse ] {
41- nextPageFn := func (client * Client , ctx context.Context , opts * ListRunStepsOptions ) (ListRunStepsResponse , error ) {
41+ nextPageFn := func (ctx context.Context , opts * ListRunStepsOptions ) (ListRunStepsResponse , error ) {
4242 return c .internalListRunSteps (ctx , threadID , runID , opts )
4343 }
4444
@@ -51,7 +51,7 @@ func (r ListRunStepsResponse) hasMore() bool { return *r.HasMore }
5151
5252// NewListRunsPager returns a pager for a Thread's runs.
5353func (c * Client ) NewListRunsPager (threadID string , options * ListRunsOptions ) * runtime.Pager [ListRunsResponse ] {
54- nextPageFn := func (client * Client , ctx context.Context , opts * ListRunsOptions ) (ListRunsResponse , error ) {
54+ nextPageFn := func (ctx context.Context , opts * ListRunsOptions ) (ListRunsResponse , error ) {
5555 return c .internalListRuns (ctx , threadID , opts )
5656 }
5757 return newOpenAIPager (c , nextPageFn , options )
@@ -63,7 +63,7 @@ func (r ListRunsResponse) hasMore() bool { return *r.HasMore }
6363
6464// NewListVectorStoresPager returns a pager for a VectorStores.
6565func (c * Client ) NewListVectorStoresPager (options * ListVectorStoresOptions ) * runtime.Pager [ListVectorStoresResponse ] {
66- nextPageFn := func (client * Client , ctx context.Context , opts * ListVectorStoresOptions ) (ListVectorStoresResponse , error ) {
66+ nextPageFn := func (ctx context.Context , opts * ListVectorStoresOptions ) (ListVectorStoresResponse , error ) {
6767 return c .internalListVectorStores (ctx , opts )
6868 }
6969 return newOpenAIPager (c , nextPageFn , options )
@@ -75,7 +75,7 @@ func (r ListVectorStoresResponse) hasMore() bool { return *r.HasMore
7575
7676// NewListVectorStoreFilesPager returns a pager for a vector store files.
7777func (c * Client ) NewListVectorStoreFilesPager (vectorStoreID string , options * ListVectorStoreFilesOptions ) * runtime.Pager [ListVectorStoreFilesResponse ] {
78- nextPageFn := func (client * Client , ctx context.Context , opts * ListVectorStoreFilesOptions ) (ListVectorStoreFilesResponse , error ) {
78+ nextPageFn := func (ctx context.Context , opts * ListVectorStoreFilesOptions ) (ListVectorStoreFilesResponse , error ) {
7979 return c .internalListVectorStoreFiles (ctx , vectorStoreID , opts )
8080 }
8181 return newOpenAIPager (c , nextPageFn , options )
@@ -87,7 +87,7 @@ func (r ListVectorStoreFilesResponse) hasMore() bool { return *r.Has
8787
8888// NewListVectorStoreFileBatchFilesPager returns a pager for vector store files in a batch.
8989func (c * Client ) NewListVectorStoreFileBatchFilesPager (vectorStoreID string , batchID string , options * ListVectorStoreFileBatchFilesOptions ) * runtime.Pager [ListVectorStoreFileBatchFilesResponse ] {
90- nextPageFn := func (client * Client , ctx context.Context , opts * ListVectorStoreFileBatchFilesOptions ) (ListVectorStoreFileBatchFilesResponse , error ) {
90+ nextPageFn := func (ctx context.Context , opts * ListVectorStoreFileBatchFilesOptions ) (ListVectorStoreFileBatchFilesResponse , error ) {
9191 return c .internalListVectorStoreFileBatchFiles (ctx , vectorStoreID , batchID , opts )
9292 }
9393 return newOpenAIPager (c , nextPageFn , options )
@@ -112,7 +112,7 @@ func newOpenAIPager[ResponseT respType, OptionsT any, POptionsT interface {
112112 updateAfter (after * string )
113113}](
114114 client * Client ,
115- nextPageFn func (client * Client , ctx context.Context , opts POptionsT ) (ResponseT , error ),
115+ nextPageFn func (ctx context.Context , opts POptionsT ) (ResponseT , error ),
116116 options POptionsT ) * runtime.Pager [ResponseT ] {
117117 var lastID * string
118118
@@ -137,7 +137,7 @@ func newOpenAIPager[ResponseT respType, OptionsT any, POptionsT interface {
137137
138138 first = false
139139
140- resp , err := nextPageFn (client , ctx , newOptions )
140+ resp , err := nextPageFn (ctx , newOptions )
141141
142142 if err != nil {
143143 var zero ResponseT
0 commit comments