Repository navigation
Open
Labels
enhancementNew feature or request
Description
This issue was written by an AI assistant (Claude) from a conversation with the maintainer. Check the details before you act on them.
Problem
Some mods put all of their description in images. The classifier gets only the title and the raw BBCode description, so for these mods it gets no useful text and gives back no properties, or wrong ones.
Example: https://workshop-walker.disconsented.com/item/3815290781/Immersive-Warfare
The model (Gemma 4 E4B) supports vision, but the llama setup does not use it.
Proposed change
Server
- Load the vision projector. Add
--mmprojor--mmproj-urlto the llama-server command inREADME.md. We use-hff, so do not rely on the automatic mmproj download. - Increase
-cfrom 4096. One image costs some hundred tokens. For 3 images, use 12288 to 16384. - In
wait_until_healthy(src/processing/llama_actor.rs), readGET /propsand examinemodalities.vision. If it is false, log a warning and do not send images.
Request
- Change
RequestMessage.contentfrom&strto the OpenAI parts array (image_urlparts, then atextpart). - Send the plain
https://image URL. llama-server downloads it. Thus we do not need base64 or a new dependency. The model container must have outbound internet access. - Do not downscale the images. They contain text, and the model must read it.
Data flow
- Add the image URLs to
MLQueueMsg::QueueandLlamaMsg::Process. - Get the URLs from the
[img]tags in the description, in order. Use the first 2 or 3. If there are none, usepreview_url.
When to send images
- Send images only when the description has little text after the BBCode is removed (for example, less than some hundred characters). This keeps the cost low for most items.
- Each item now makes 2 requests (features and genres), so each image is encoded 2 times. For items with images, merge the 2 tasks into 1 request with a 4 field schema.
Prompts
- Add a sentence to
prompts/features.txtandprompts/genres.txt: if there are images, they are the mod description, and the text in them is description text.
After the change
The example item already has ml_last_run set. Queue it again with MaybeQueue and the force flag, or clear the field.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity