Skip to content

Commit

Permalink
Merge pull request #471 from bjwswang/chore
Browse files Browse the repository at this point in the history
fix: unmilited page size not working in llm/embedder
  • Loading branch information
bjwswang authored Dec 28, 2023
2 parents e062a95 + 8bc531e commit 3ed0634
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions apiserver/graph/schema/modelservice.gql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ mutation createModelService($input: CreateModelServiceInput!) {
providerType
types
apiType
models
llmModels
embeddingModels
creationTimestamp
updateTimestamp
status
Expand All @@ -36,7 +37,8 @@ mutation updateModelService($input: UpdateModelServiceInput) {
providerType
types
apiType
models
llmModels
embeddingModels
creationTimestamp
updateTimestamp
status
Expand Down Expand Up @@ -66,7 +68,8 @@ query getModelService($name: String!, $namespace: String!) {
providerType
types
apiType
models
llmModels
embeddingModels
creationTimestamp
updateTimestamp
status
Expand Down Expand Up @@ -95,7 +98,8 @@ query listModelServices($input: ListModelServiceInput) {
providerType
types
apiType
models
llmModels
embeddingModels
creationTimestamp
updateTimestamp
status
Expand Down
2 changes: 1 addition & 1 deletion apiserver/pkg/embedder/embedder.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func ListEmbedders(ctx context.Context, c dynamic.Interface, input generated.Lis
if input.Page != nil && *input.Page > 0 {
page = *input.Page
}
if input.PageSize != nil && *input.PageSize > 0 {
if input.PageSize != nil {
pageSize = *input.PageSize
}

Expand Down
2 changes: 1 addition & 1 deletion apiserver/pkg/llm/llm.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func ListLLMs(ctx context.Context, c dynamic.Interface, input generated.ListComm
if input.Page != nil && *input.Page > 0 {
page = *input.Page
}
if input.PageSize != nil && *input.PageSize > 0 {
if input.PageSize != nil {
pageSize = *input.PageSize
}

Expand Down
2 changes: 1 addition & 1 deletion apiserver/pkg/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func ListWorkers(ctx context.Context, c dynamic.Interface, input generated.ListW
if input.Page != nil && *input.Page > 0 {
page = *input.Page
}
if input.PageSize != nil && *input.PageSize > 0 {
if input.PageSize != nil {
pageSize = *input.PageSize
}

Expand Down

0 comments on commit 3ed0634

Please sign in to comment.