Skip to content

refactor: remove prepare support#906

Merged
starpit merged 1 commit into
IBM:mainfrom
starpit:remove-prepare-support
Feb 24, 2026
Merged

refactor: remove prepare support#906
starpit merged 1 commit into
IBM:mainfrom
starpit:remove-prepare-support

Conversation

@starpit
Copy link
Copy Markdown
Member

@starpit starpit commented Feb 24, 2026

Summary

  • Remove the --prepare CLI flag and GenerateOptions.prepare field — never fully implemented across backends
  • Remove tokenize_prepare FFI function and its helper functions (extract_parts, extract_up_to_plus, encode_nonplus_part, encode_plus_part, standalone pad)
  • Clean up prepare guards (todo!/error stubs) from openai, mistralrs, and spnl backends

Test plan

  • cargo check passes
  • cargo test — all 33 tests pass
  • cargo clippy with CI feature flags — zero warnings

🤖 Generated with Claude Code

The --prepare flag and related code were never fully implemented:
openai and mistralrs backends had todo!()/error stubs, and the spnl
backend only returned "prepared" for non-streaming. Remove the flag,
GenerateOptions.prepare field, backend guards, tokenize_prepare FFI
function and its helpers, and the CLI docs entry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
@starpit starpit merged commit ee5254d into IBM:main Feb 24, 2026
36 checks passed
@starpit starpit deleted the remove-prepare-support branch February 24, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant