Skip to content

Commit

Permalink
Merge pull request #76 from kerthcet/feat/change-to-openmodel
Browse files Browse the repository at this point in the history
Change API Model to OpenModel
  • Loading branch information
InftyAI-Agent authored Aug 10, 2024
2 parents 67f78a7 + a8e207b commit 79d070c
Show file tree
Hide file tree
Showing 52 changed files with 791 additions and 791 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Read the [Installation](./docs/installation.md) for guidance.
### Deploy

Here's a simplest sample for deploying `facebook/opt-125m`, all you need to do
is to apply the `Model` and `Playground` yamls.
is to apply a `Model` and a `Playground`.

Please refer to **[examples](/docs/examples/README.md)** to learn more.

Expand All @@ -41,7 +41,7 @@ Please refer to **[examples](/docs/examples/README.md)** to learn more.

```yaml
apiVersion: llmaz.io/v1alpha1
kind: Model
kind: OpenModel
metadata:
name: opt-125m
spec:
Expand Down
12 changes: 6 additions & 6 deletions api/core/v1alpha1/model_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ type ModelStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster

// Model is the Schema for the models API
type Model struct {
// OpenModel is the Schema for the open models API
type OpenModel struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Expand All @@ -165,13 +165,13 @@ type Model struct {

//+kubebuilder:object:root=true

// ModelList contains a list of Model
type ModelList struct {
// OpenModelList contains a list of OpenModel
type OpenModelList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Model `json:"items"`
Items []OpenModel `json:"items"`
}

func init() {
SchemeBuilder.Register(&Model{}, &ModelList{})
SchemeBuilder.Register(&OpenModel{}, &OpenModelList{})
}
118 changes: 59 additions & 59 deletions api/core/v1alpha1/zz_generated.deepcopy.go

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

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

4 changes: 2 additions & 2 deletions client-go/applyconfiguration/utils.go

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

Loading

0 comments on commit 79d070c

Please sign in to comment.