👉 Requirements: Python, and any API keys and functions you want; I am currently using only the openai_api_key.
python -m venv venv
venv/Scripts/activate
source venv/bin/activate
pip install -r requirements.txt
pip install .
Default model gpt-4o-mini
from OpenAI.
langapp
You can select other models, such as llama3.1
or deepseek-r1
from Ollama after installing and setting it up.
langapp --m llama3.1
You can select chat role as well. Default is: short and concise
langapp --r "correct english"
Other roles: correct german
upgrade english
, remaster the conversation
translate to english/german/hungarian
or extend with what you need in prompts.py
and helpers.py
.
End conversation: empty prompt / press Enter
Download and install from Ollama's website to use it locally.
test a model
ollama run <model_name>:<param>b
In the case of using an open-source model from Ollama, you need to run the command before using Langapp.
#.env
OPENAI_API_KEY
shell_scripts/runapp.bat
on Windows
shell_scripts/runapp.sh
on Linux
👉 More in .app_info