Skip to content

steve100/simpledemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Demo

A very light weight project that helps install helpful tools on Windows 11

These include Git, Python3, NodeJS, Ollama, LMStudio

You will need to get your own OPEN_API_KEY

Remeber to set the environment variable to your OPENAI_API_KEY or uncomment the use .env code

Use Case:

To aid in installing infrastructure

To run a very simple.py program to use the OpenAI LLM serever (ChatGPT) server and a Local LLM server.

Python examples

verysimple.py # the more simple python program to talk to OpenAI. It writes a story about a unicorn

simple.py # a fancier example which uses local and remote ai. It writes a haiku (poem)

rem to export your before you run any of this
rem set OPENAI_API_KEY=sk-proj-665EaIpseL-6Fd ..... 

rem This runs against openai (chatgpt) 
python3 simple.py openai

rem This will run locally with ollama
python3 simple.py ollama

rem this will run locally with LMStudio
python3 simple.py lmstudio

rem run verysimple against openai
python3 verysimple.py

Batch Files to help download, install and run software

install- It downloads the program and starts and attended install. (sorry no unattended)

add - adds options to python.

run - runs the various features

Nodejs-project Examples

How to talk to OpenAI with NodeJS.

Follows much the same conventions as the Python

About

A Beginners Kit to install git, python3, nodejs, ollama and how to point to OpenAi and Ollama

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors