github.com/mattt/llama.swift breaking changes
github.com/mattt/llama.swift 3.0.0 (November 18, 2026) is its newest release with breaking changes, 50 of them. The first: Removed llama_add_bos_token. Every breaking API change we have recorded in github.com/mattt/llama.swift on Swift Package Index: 50 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.1.1, released December 4, 2026. Source repository
github.com/mattt/llama.swift 3.0.0 breaking changes
- Removed
llama_add_bos_token
Removes llama_add_bos_token in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_add_eos_token
Removes llama_add_eos_token in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_context_params.defrag_thold
The field is gone, so remove any assignment to it. github.com - Removed
llama_copy_state_data
Removes llama_copy_state_data in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_free_model
Removes llama_free_model in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_get_state_size
Removes llama_get_state_size in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_load_model_from_file
llama.cpp v1.0.0 removes this deprecated function. Use the replacement instead. github.com - Removed
llama_load_session_file
Removes llama_load_session_file in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_n_ctx_train
Removes llama_n_ctx_train in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_n_embd
Removes llama_n_embd in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_n_head
Removes llama_n_head in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_n_layer
Removes llama_n_layer in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_n_vocab
Removes llama_n_vocab in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_new_context_with_model
Removes llama_new_context_with_model in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_sampler_init_grammar_lazy
Removes llama_sampler_init_grammar_lazy in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_save_session_file
Removes llama_save_session_file in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_set_state_data
Removes llama_set_state_data in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_set_warmup
The header says user code should do warmup runs manually. github.com - Removed
llama_token_bos
Removes llama_token_bos in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_cls
Removes llama_token_cls in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_eos
Removes llama_token_eos in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_eot
Removes llama_token_eot in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_fim_mid
Removes llama_token_fim_mid in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_fim_pad
Removes llama_token_fim_pad in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_fim_pre
Removes llama_token_fim_pre in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_fim_rep
Removes llama_token_fim_rep in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_fim_sep
Removes llama_token_fim_sep in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_fim_suf
Removes llama_token_fim_suf in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_get_attr
Removes llama_token_get_attr in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_get_score
Removes llama_token_get_score in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_get_text
Removes llama_token_get_text in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_is_control
Removes llama_token_is_control in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_is_eog
Removes llama_token_is_eog in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_nl
Removes llama_token_nl in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_pad
Removes llama_token_pad in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_token_sep
Removes llama_token_sep in github.com/mattt/llama.swift 3.0.0 github.com - Removed
llama_vocab_cls
The header names llama_vocab_cls as the replacement for llama_token_cls, but v1.0.0 removes it too. github.com - Removed
mtmd_gen_inp.seed
Set the seed in mtmd_gen_state_params instead. github.com - Removed
mtmd_gen_inp.state_data
Keep the mtmd_gen_state for the whole generation instead. github.com - Removed
mtmd_gen_inp.state_size
Keep the mtmd_gen_state for the whole generation instead. github.com - Removed
mtmd_gen_out.state_data
Keep the mtmd_gen_state for the whole generation instead. github.com - Removed
mtmd_gen_out.state_size
Keep the mtmd_gen_state for the whole generation instead. github.com - Behavior changed
Version X.Y.Z of llama.cpp maps to llama.swift (X+2).Y.Z, so 2.x version numbers no longer match the new scheme. github.com - Behavior changed
llama_state_load_file
llama_state_load_file returns false for files saved with 2.x. Process the prompt again to create new state. github.com - Behavior changed
llama_state_seq_load_file
llama_state_seq_load_file returns 0 for files saved with 2.x. Process the prompt again to create new state. github.com - Signature changed
llama_context_params
Code calling the full memberwise initializer must add the new arguments. github.com - Signature changed
mtmd_gen_audio_process
Pass an mtmd_gen_state as the second argument and keep it for the whole generation. github.com - Signature changed
mtmd_helper_bitmap_init_from_buf
Pass mtmd_helper_init_opt_default() as the new last argument. github.com - Signature changed
mtmd_helper_bitmap_init_from_file
Pass mtmd_helper_init_opt_default() as the new last argument. github.com - Signature changed
mtmd_helper_post_decode_callback
The callback now receives mtmd_helper_embd_batch instead of llama_batch. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.