Skip to content

Commit

Permalink
feat: optimize model service apis
Browse files Browse the repository at this point in the history
Signed-off-by: bjwswang <[email protected]>
  • Loading branch information
bjwswang committed Dec 27, 2023
1 parent 9c2752f commit 9fafe44
Show file tree
Hide file tree
Showing 14 changed files with 557 additions and 1,144 deletions.
553 changes: 158 additions & 395 deletions apiserver/graph/generated/generated.go

Large diffs are not rendered by default.

53 changes: 38 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.

11 changes: 1 addition & 10 deletions apiserver/graph/impl/modelservice.resolvers.go

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

170 changes: 10 additions & 160 deletions apiserver/graph/schema/modelservice.gql
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,13 @@ 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
}
}
}
Expand All @@ -63,45 +31,13 @@ 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
}
}
}
Expand All @@ -112,60 +48,6 @@ mutation deleteModelServices($input: DeleteCommonInput) {
}
}

query getModelService($name: String!, $namespace: String!, $apiType: String!) {
ModelService {
getModelService(name: $name, namespace: $namespace, apiType: $apiType) {
id
name
namespace
labels
annotations
creator
displayName
description
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
}
}
}
}

query listModelServices($input: ListModelService) {
ModelService {
listModelServices(input: $input) {
Expand All @@ -182,45 +64,13 @@ 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
}
}
}
Expand Down
Loading

0 comments on commit 9fafe44

Please sign in to comment.