Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sqliteai/sqlite-ai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.7.59
Choose a base ref
...
head repository: sqliteai/sqlite-ai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.0
Choose a head ref
  • 14 commits
  • 12 files changed
  • 3 contributors

Commits on Nov 20, 2025

  1. fix(chat): make chat saves idempotent and support repeated updates fo…

    …r the same uuid
    
    Updated llm_chat_save to use INSERT ... ON CONFLICT for ai_chat_history, ensuring chat metadata is updated if the uuid exists. Added logic to fetch the correct rowid after upsert and to delete all previous messages for the chat before saving new ones, ensuring message history is consistent.
    andinux committed Nov 20, 2025
    Configuration menu
    Copy the full SHA
    34be76d View commit details
    Browse the repository at this point in the history
  2. chore: bump version to 0.7.59

    andinux committed Nov 20, 2025
    Configuration menu
    Copy the full SHA
    fcf8d10 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2026

  1. feat(audio): add whisper audio transcription; fix bugs; update docs a…

    …nd CI
    
    Audio transcription:
    - Add audio_model_transcribe() accepting TEXT (file path) or BLOB input
    - Auto-detect audio format from file extension and magic bytes (WAV, MP3, FLAC)
    - Convert audio to mono 16kHz PCM as required by Whisper
    - Support 15 transcription options (language, translate, n_threads, temperature, etc.)
    - Uncomment and register audio_model_load/audio_model_free functions
    - Add 8 new unit tests covering transcription, options, error handling, and lifecycle
    
    Bug fixes:
    - Fix strncasecmp prefix-matching bug: add KEY_MATCHES macro that checks both
      key length and case-insensitive match, replacing all 39 occurrences
    - Fix wrong variable in logger call: warn_buf was formatted but buffer was passed
      to ai_logger, logging raw option values instead of the warning message
    - Fix NULL dereference in role_normalize when role is NULL
    - Fix NULL dereference in llm_model_cls_label when label is NULL
    - Fix potential buffer overflow in prompt_len underflow (negative-to-size_t wraparound)
    - Fix uint16_t type mismatch in audio PCM functions: miniaudio writes unsigned int
      (4 bytes) for channels, but uint16_t (2 bytes) was used, causing stack corruption
    - Fix whisper params string lifetime: track default vs dynamically allocated strings
      to avoid sqlite3_free on static string literals
    - Fix PCM buffer free: use sqlite3_free instead of free for buffers allocated via
      miniaudio's custom sqlite3_malloc allocator
    - Remove redundant NULL assignment in buffer_destroy
    
    Submodule updates:
    - Update miniaudio from 0.11.22 to 0.11.25
    - Update llama.cpp and whisper.cpp submodules
    
    CI (main.yml):
    - Add whisper model and audio test file download with caching
    - Rename download-model job to download-models
    - Cache whisper model (ggml-tiny.bin) and audio test WAV (jfk.wav) across runs
    
    Makefile:
    - Add whisper model and audio test file download targets
    - Pass --whisper-model and --audio arguments to unit test binary
    
    Documentation:
    - API.md: add llm_chat_system_prompt, audio_model_load, audio_model_free,
      audio_model_transcribe with full options table; fix version and typos
    - README.md: move Getting Started after Features; add examples for embedding
      generation, chat, and audio transcription; add Audio Transcription feature;
      update description to reflect shipped audio support
    
    Version bump: 0.7.59 → 0.9.0
    marcobambini committed Mar 6, 2026
    Configuration menu
    Copy the full SHA
    2b30aca View commit details
    Browse the repository at this point in the history
  2. Merge branch 'pr-24'

    # Conflicts:
    #	src/sqlite-ai.h
    #	tests/c/unittest.c
    marcobambini committed Mar 6, 2026
    Configuration menu
    Copy the full SHA
    86e33fc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8808be6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8f98ec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e9e55ea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    62a9fcc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    533844c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0a67694 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c8d3360 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2cf48de View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e145500 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8ffd4d7 View commit details
    Browse the repository at this point in the history
Loading