Skip to content

Files

Latest commit

 

History

History

2024_02_13 - Run Any Open LLM with OpenAI API

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Run Open LLMs with the OpenAI API

This demo explores how to run local and serverless LLMs using the OpenAI API, so that you can easily swap between models.

Part 1: Concept Overview: Using the OpenAI API with Ollama and Together.ai
Part 2: Code Examples: Tool Calling, Streaming, LangChain Compatability
Part 3: Code Examples: Powering Agents

You can watch a walkthrough on YouTube

Project Setup

You will need to create a .env file with your own keys. I have provided an example at .env.example

The demo files can all be run as Jupyter notebooks.