#5863·photoprism

Bug: Llama-Server models with a colon (or quant in the name) cannot be called

Author: jojo2357Created Sep 28, 2026Updated Sep 28, 2026

What is not working as documented?

When configuring vision.yml, models that have a quant in the id (which is required) cannot be configured correctly

example vision.yml

How can we reproduce it?

set this vision.yml:

Models:
  - Type: labels
    Model: unsloth/Qwen3.5-9B-GGUF:Q4_K_M
    Engine: openai
    Run: auto
    Options:
      MaxOutputTokens: 1024 # optional: change token limit
    Service:
      Uri: http:/<redacted>:8080/v1/responses
      Key: <redacted>
  - Type: caption
    Model: unsloth/Qwen3.5-9B-GGUF:Q4_K_M
    Engine: openai
    Run: auto
    Options:
      Detail: low           # optional: default is low
      MaxOutputTokens: 512  # optional: change token limit
    Service:
      Uri: http://<redacted>:8080/v1/responses
      Key: <redacted>

run docker compose exec photoprism photoprism vision ls and observe that the model is reported as unsloth/Qwen3.5-9B-GGUF.

You do not need llama-server; this is not a valid model listed on /models so all calls fail with some message about model not found

Have you verified that no similar reports exist?

  • This is a new bug that has not yet been reported or documented

What behavior do you expect?

The ability to specify the model ID without modification

What could be the cause?

Right here:

https://github.com/photoprism/photoprism/blob/d02fc9b295fe10d28265b50050df8ba80931560d/internal/ai/vision/model.go#L111

Anything after the colon is dropped when using an openai-compatible endpoint. There is no way to escape the colons.

Which software versions do you use?

  • PhotoPrism Edition & Version (Build): Community edition, 260919-28c46a116 installed via docker
  • Database Type & Version(s): mariadb 12.3
  • Operating System(s): debian 13
  • Browser Type & Version(s): n/a
  • Ad Blockers, Antivirus, and Plugins: n/a

On what device is PhotoPrism installed?

Not relevant?

Do you use a reverse proxy, firewall, VPN, or CDN?

No

Logs, Sample Files, or Screenshots

No response