Skip to content

Commit

Permalink
Add models to Modus AssemblyScript SDK (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Oct 5, 2024
1 parent 57cffd1 commit 421ab23
Show file tree
Hide file tree
Showing 37 changed files with 2,988 additions and 407 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Add Local Model Invocation Support [#421](https://github.com/hypermodeinc/modus/pull/421)
- Remove HTTP Timeout, Add Context Timeout on Collections [#422](https://github.com/hypermodeinc/modus/pull/422)
- Add Modus AssemblyScript SDK [#423](https://github.com/hypermodeinc/modus/pull/423)
- Add models to Modus AssemblyScript SDK [#428](https://github.com/hypermodeinc/modus/pull/428)

## 2024-10-02 - Version 0.12.7

Expand Down
3 changes: 3 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@
"nquads",
"objs",
"offsetof",
"omitif",
"omitnull",
"openai",
"operationreport",
"pgconn",
Expand Down Expand Up @@ -150,6 +152,7 @@
"tsrv",
"typedarray",
"uids",
"uncategorized",
"unmarshalling",
"unnest",
"upsert",
Expand Down
Binary file modified runtime/languages/assemblyscript/testdata/build/testdata.wasm
Binary file not shown.
5 changes: 2 additions & 3 deletions runtime/languages/assemblyscript/testdata/package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Message,
UserMessage,
ToolChoiceTool,
} from "@hypermode/models-as/models/anthropic/messages";
} from "@hypermode/modus-sdk-as/models/anthropic/messages";


@json
Expand Down
78 changes: 36 additions & 42 deletions sdk/assemblyscript/examples/anthropic-functions/package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
},
"dependencies": {
"@hypermode/modus-sdk-as": "../../src",
"@hypermode/models-as": "^0.2.4",
"json-as": "^0.9.21"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { models } from "@hypermode/modus-sdk-as";
import {
ClassificationModel,
ClassifierResult,
} from "@hypermode/models-as/models/experimental/classification";
} from "@hypermode/modus-sdk-as/models/experimental/classification";

// This model name should match one defined in the hypermode.json manifest file.
const modelName: string = "my-classifier";
Expand Down
Loading

0 comments on commit 421ab23

Please sign in to comment.