simonw / simonw/llm

Figure out truncation strategy for continue conversation mode

Open
#73 11 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted research
Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

I'm still not clear on the best way to truncate messages in continue mode, right now I'm going to leave that and allow the model to return an error - but it would be good to have a strategy for that involving automatic truncating later on.

Originally posted by @simonw in https://github.com/simonw/llm/issues/65#issuecomment-1616021169

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the implementation of continue conversation mode and how it handles message history; the issue names no files or tests. Clarify an automatic truncation strategy and its expected behavior before implementation, with completion defined by an agreed approach that avoids the current model error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.