This repo contains some of the examples I shared while giving a talk at the UtahJS conference, which includes how to use Gpt4, Llama and other models via Javascript.
You can go straight to the examples here:
https://github.com/toddwashere/ai-cookbook-learning/tree/main/api/src/examples