Chatfile is a simple tool for interacting with language models using plaintext.
FROM chatgpt
SYSTEM You are a technical writer.
ASK Write a readme file for the chatfile project
ANSWER |
**Chatfile** is a prompt-driven tool for interacting with LLMs using plaintext.
Set your API key and optionally the base url of an openai-compatible api:
export OPENAI_API_KEY="sk-chatfile-key"
export OPENAI_BASE_URL="http://api.example.com/" # OptionalCreate a chatfile:
cat > ./chatfile << ---
FROM gpt-4.1-nano
SYSTEM |
You are an expert in explaining mathematical concepts clearly and concisely.
Provide a straightforward and accurate explanation for students.
ASK What is Cauchy's functional equation?
---Call the tool to execute your chatfile and get a response with this command:
chatfile run ./chatfileChatfile — prompt and get responses all in one file!