Earlier personal project - Private source

RunPod Chat Assistant

A lightweight PHP chat interface for RunPod, with saved conversations, reusable prompts, response timing, and estimated usage costs.

RunPod Chat Assistant - chat example
RunPod Chat Assistant - chat example

About RunPod Chat Assistant

RunPod Chat Assistant is an earlier personal project: a small browser interface for chatting with an AI model hosted on RunPod, keeping the conversation history, and saving useful prompts for later.

The application uses PHP on the server, SQLite for storage, and plain JavaScript in the browser. Messages are grouped into separate conversations, which can be reopened from a history selector. The active conversation is remembered in the browser, and previous messages are included when sending the next request to the model.

Useful prompts can be bookmarked and picked from a saved-prompts menu. Selecting one puts its text back into the message box, ready to reuse or edit. Assistant replies support Markdown formatting, including lists and code blocks, inside a simple dark chat interface. Response timing and cost estimates appear alongside the replies, with a running total for the conversation. The estimate uses elapsed time, an overhead allowance, and a configurable per-second rate. It provides a rough view of usage cost rather than reproducing the provider’s billing records.

The code handles the basic loop from browser input to a hosted model response: collecting the message, rebuilding conversation context, calling the endpoint, storing the reply, and updating the interface. It is a compact example of connecting an external AI service to a persistent personal tool with PHP and SQLite.

This is presented as an earlier personal utility, with the source kept private.

Release history

Version 1.0.0