Skip to content

Commit

Permalink
Merge pull request #454 from bjwswang/chore
Browse files Browse the repository at this point in the history
feat: optimize model service apis
  • Loading branch information
bjwswang authored Dec 27, 2023
2 parents 5c722c5 + e612dc0 commit ed4e8d8
Show file tree
Hide file tree
Showing 13 changed files with 680 additions and 961 deletions.
487 changes: 242 additions & 245 deletions apiserver/graph/generated/generated.go

Large diffs are not rendered by default.

56 changes: 41 additions & 15 deletions apiserver/graph/generated/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions apiserver/graph/impl/modelservice.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 21 additions & 145 deletions apiserver/graph/schema/modelservice.gql
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,14 @@ mutation createModelService($input: CreateModelServiceInput!) {
creator
displayName
description
providerType
types
apiType
creationTimestamp
updateTimestamp
llmResource {
name
namespace
labels
annotations
displayName
description
baseUrl
models
provider
type
updateTimestamp
status
message
}
embedderResource {
name
namespace
labels
annotations
displayName
description
type
baseUrl
models
provider
updateTimestamp
status
message
}
resource {
cpu
nvidiaGPU
memory
}
status
message
baseUrl
}
}
}
Expand All @@ -63,45 +32,14 @@ mutation updateModelService($input: UpdateModelServiceInput) {
creator
displayName
description
providerType
types
apiType
creationTimestamp
updateTimestamp
llmResource {
name
namespace
labels
annotations
displayName
description
baseUrl
models
provider
type
updateTimestamp
status
message
}
embedderResource {
name
namespace
labels
annotations
displayName
description
type
baseUrl
models
provider
updateTimestamp
status
message
}
resource {
cpu
nvidiaGPU
memory
}
status
message
baseUrl
}
}
}
Expand All @@ -112,9 +50,9 @@ mutation deleteModelServices($input: DeleteCommonInput) {
}
}

query getModelService($name: String!, $namespace: String!, $apiType: String!) {
query getModelService($name: String!, $namespace: String!) {
ModelService {
getModelService(name: $name, namespace: $namespace, apiType: $apiType) {
getModelService(name: $name, namespace: $namespace) {
id
name
namespace
Expand All @@ -123,50 +61,19 @@ query getModelService($name: String!, $namespace: String!, $apiType: String!) {
creator
displayName
description
providerType
types
apiType
creationTimestamp
updateTimestamp
llmResource {
name
namespace
labels
annotations
displayName
description
baseUrl
models
provider
type
updateTimestamp
status
message
}
embedderResource{
name
namespace
labels
annotations
displayName
description
baseUrl
models
provider
type
updateTimestamp
status
message
}
resource {
cpu
memory
nvidiaGPU
}
updateTimestamp
status
message
baseUrl
}
}
}

query listModelServices($input: ListModelService) {
query listModelServices($input: ListModelServiceInput) {
ModelService {
listModelServices(input: $input) {
totalCount
Expand All @@ -182,45 +89,14 @@ query listModelServices($input: ListModelService) {
creator
displayName
description
providerType
types
apiType
creationTimestamp
updateTimestamp
llmResource {
name
namespace
labels
annotations
displayName
description
baseUrl
models
provider
type
updateTimestamp
status
message
}
embedderResource{
name
namespace
labels
annotations
displayName
description
baseUrl
models
provider
type
updateTimestamp
status
message
}
resource {
cpu
memory
nvidiaGPU
}
updateTimestamp
status
message
baseUrl
}
}
}
Expand Down
Loading

0 comments on commit ed4e8d8

Please sign in to comment.