Repository navigation
v1.2.0 — Stateful conversations with persistent system prompts
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:
start_conversation(system_prompt="You are a friend at a bar...", first_message="Hey!")continue_conversation(response_id="resp_abc...", message="Work's been insane this week")continue_conversation(response_id="resp_def...", message="Where would you go tomorrow?")
Requires LM Studio v0.3.29+
Improvements
- Default
max_tokensraised from 1024 → 2048 inchat_completionand
text_completionto prevent responses being cut off mid-sentence