Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Basic Examples

Basic examples of how to the the functions in ModelFusion.

Usage

  1. Create .env file with the following content (and more settings, depending on the providers you want to use):
OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
COHERE_API_KEY="YOUR_COHERE_API_KEY"
HUGGINGFACE_API_KEY="YOUR_HUGGINGFACE_API_KEY"
...
  1. Run the following commands from the root directory of the modelfusion repo:
pnpm install
pnpm build
  1. Run any example:
pnpm tsx examples/basic/src/path/to/example.ts