Skip to content

Commit

Permalink
Remove deprecated model fields from manifest schema (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Oct 23, 2024
1 parent 646d9d1 commit 84aa886
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ In previous releases, the name "Hypermode" was used for all three._
- Add metadata shared library [#482](https://github.com/hypermodeinc/modus/pull/482)
- Add `.gitignore` files to default templates [#486](https://github.com/hypermodeinc/modus/pull/486)
- Fix CLI warnings about Go/TinyGo installation [#487](https://github.com/hypermodeinc/modus/pull/487)
- Remove deprecated model fields [#488](https://github.com/hypermodeinc/modus/pull/488)

## 2024-10-02 - Version 0.12.7

Expand Down
19 changes: 0 additions & 19 deletions lib/manifest/modus_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@
"required": ["sourceModel", "provider", "connection"],
"additionalProperties": false,
"properties": {
"task": {
"type": "string",
"deprecated": true,
"minLength": 1,
"enum": ["classification", "embedding", "generation"],
"description": "Training intent of the model, such as 'classification' or 'embedding'.\n\nThis field is deprecated and no longer used. It will be removed in a future version of the schema."
},
"sourceModel": {
"type": "string",
"minLength": 1,
Expand All @@ -92,11 +85,6 @@
"type": "string",
"const": "hypermode",
"description": "Connection for the model. Either 'hypermode', or the name of an external connection as defined in the 'connections' section."
},
"dedicated": {
"type": "boolean",
"default": false,
"description": "Whether to have the model be dedicated to the project, or shared."
}
}
},
Expand All @@ -105,13 +93,6 @@
"required": ["connection"],
"additionalProperties": false,
"properties": {
"task": {
"type": "string",
"deprecated": true,
"minLength": 1,
"enum": ["classification", "embedding", "generation"],
"description": "Training intent of model, such as 'classification' or 'embedding'.\n\nThis field is deprecated and no longer used. It will be removed in a future version of the schema."
},
"sourceModel": {
"type": "string",
"minLength": 1,
Expand Down
6 changes: 0 additions & 6 deletions lib/manifest/test/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ func TestReadManifest(t *testing.T) {
SourceModel: "source-model-3",
Connection: "my-model-connection",
},
"model-4": {
Name: "model-4",
SourceModel: "example/source-model-4",
Provider: "hugging-face",
Connection: "hypermode",
},
},
Connections: map[string]manifest.ConnectionInfo{
"my-model-connection": manifest.HTTPConnectionInfo{
Expand Down
6 changes: 0 additions & 6 deletions lib/manifest/test/valid_modus.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
"model-3": {
"sourceModel": "source-model-3",
"connection": "my-model-connection"
},
"model-4": {
"sourceModel": "example/source-model-4",
"provider": "hugging-face",
"connection": "hypermode",
"dedicated": true
}
},
"connections": {
Expand Down

0 comments on commit 84aa886

Please sign in to comment.