Skip to content

Latest commit

 

History

History

modushack-data-models

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ModusHack Livestream #2: Data and Models

This example shows how to fetch the most recent articles from the New York Times API and use the Meta LLama LLM model to copywrite additional article titles based on the description.

Watch the recording here:

ModusHack Livestream: Data and Models

To run

Ensure you have the modus cli installed:

npm i -g @hypermode/modus-cli

Get your free New York Times developer API key, then update .env:

# Create your NYTimes Developer API key at https://developer.nytimes.com/
MODUS_NYT_API_KEY=<YOUR_API_KEY_HERE>

Then to build and run the Modus app locally:

modus dev

To use the Meta LLama model hosted on Hypermode you'll need a free Hypermode account.

First install the hyp cli:

npm install -g @hypermode/hyp-cli

Then login to Hypermode:

hyp login

You'll be prompted to login / create a Hypermode account after which you'll be able to invoke Hypermode hosted models via your Modus apps locally.