mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Strip image_url parts from all user messages except the most recent one before sending to the API. The model has already responded to earlier images, so re-sending them on every turn wastes tokens. The VFS text path is preserved so the model can still read the file if needed. This is a send-time transformation only — session.messages stays intact for the UI.