Skip to content

v1.2.0 — Stateful conversations with persistent system prompts

Choose a tag to compare

@infinitimeless infinitimeless released this 10 Apr 21:17
· 3 commits to main since this release
6830b59

New Features

start_conversation — Begin a stateful session with a locked-in system prompt

Start a multi-turn conversation with your local model by defining a persona or
instructions once. Returns a response_id to chain all subsequent turns.

continue_conversation — Continue seamlessly without re-sending context

Pass the response_id from the previous turn and your next message — LM Studio
handles all history automatically. The system prompt is preserved throughout
the entire session with no manual management needed.

Example workflow:

  1. start_conversation(system_prompt="You are a friend at a bar...", first_message="Hey!")
  2. continue_conversation(response_id="resp_abc...", message="Work's been insane this week")
  3. continue_conversation(response_id="resp_def...", message="Where would you go tomorrow?")

Requires LM Studio v0.3.29+

Improvements

  • Default max_tokens raised from 1024 → 2048 in chat_completion and
    text_completion to prevent responses being cut off mid-sentence