Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion modus/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ learn how to use the basic components of a Modus app and how to run it locally.
View endpoint: http://localhost:8686/explorer
```

This interface allows you to interact with your app's API and test your functions.
The API Explorer interface allows you to interact with your app's API and test your functions.

<img
className="block"
Expand Down Expand Up @@ -172,6 +172,32 @@ learn how to use the basic components of a Modus app and how to run it locally.

</Tab>
</Tabs>
After adding your function, you can use the API Explorer interface to test the `GetRandomQuote` function.

</Step>
<Step title="Add a model">
Modus also supports AI models. You can define new models in your `modus.json` file. Let's add a new meta-llama model:

```json
"models": {
"text-generator": {
"sourceModel": "meta-llama/Meta-Llama-3.1-8B-Instruct",
"provider": "hugging-face",
"connection": "hypermode"
}
},
```

</Step>
<Step title="Install the Hyp CLI and log in">
Next, install the Hyp CLI. This allows you to access hosted models on the Hypermode platform.

```bash
npm install -g @hypermode/hyp-cli
```

You can now use the `hyp login` command to log in to the Hyp CLI.
This links your project to the Hypermode platform, allowing you to leverage the model in your modus app.

</Step>
</Steps>
Loading