Skip to content

Starter template to create and chat with an OpenAI assistant with Python + HTMX!

Latest
Compare
Choose a tag to compare
@chriscarrollsmith chriscarrollsmith released this 17 Apr 19:57
· 2 commits to main since this release
ca28041

In this release:

  1. Create your assistant on the setup page! Select your assistant's model and tools, and upload documents to provide the assistant a custom vector store for file search.
  2. Chat with your assistant on the chat page! The application streams assistant tool call and assistant message text deltas via SSE to the frontend, where the HTMX SSE extension receives them and hands them off to the marked Javascript library for conversion from markdown to HTML before swapping them in.
  3. Assistant can use the code interpreter, the file search tool, or any custom Python function you write (see utils/custom_functions.py for an example get_weather function).

Excited to see what you build on this foundation!