Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
C
coderai
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexlab
  • coderai
  • Repository

Switch branch/tag
  • coderai
  • codai
  • api
  • text.py
Find file
BlameHistoryPermalink
  • Stefy Lanza (nextime / spora )'s avatar
    vision: transcode AVIF/WebP images to PNG for the llama.cpp chat handler · 0c69e4bc
    Stefy Lanza (nextime / spora ) authored Jul 24, 2026
    A vision-capable GGUF model (gemma-4-26B + mmproj) replied "none" to
    real-estate photos because the client sends AVIF, and llama.cpp's mtmd
    chat handler decodes data-URIs with stb_image, which has no AVIF/WebP
    support — the model silently received no image. _normalize_vision_content
    now transcodes any non-stb format to PNG via PIL (which has libavif) before
    handing it to the handler. The radeon GME embedder was unaffected (it
    already decodes via PIL). Text-only models (gemma-2-9b, no mmproj) are
    untouched — the image is still flattened, since they have no vision tower.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014S8VtAvG499SsCbeESRK7V
    0c69e4bc
text.py 161 KB
EditWeb IDE

Replace text.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.