enable image input for vision-capable prime inference models - #261
Merged
Conversation
…ision-support # Conflicts: # packages/ai/scripts/generate-models.ts
zhengr
pushed a commit
to zhengr/prime-agent
that referenced
this pull request
Aug 8, 2026
…ne-image-attachments fix: send Slack image attachments inline to LLM
zhengr
pushed a commit
to zhengr/prime-agent
that referenced
this pull request
Aug 8, 2026
…tellect-ai#261) * enable image input for vision-capable prime inference models * update prime inference test for vision-capable default model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Low Risk
Metadata-only change to declared input modalities; main risk is a wrong
visionflag advertising image support for a model that does not accept images.Overview
Prime Inference models were all registered as text-only, so attached images were rejected even for Claude, GPT-5, Grok, and other vision backends. Because Prime Inference’s models API does not expose modality data, vision is now curated via an optional
visionflag onPRIME_INFERENCE_MODEL_METADATA, andcreatePrimeInferenceModelsetsinputto["text", "image"]when that flag is set (otherwise["text"]).Flagged models include Anthropic Claude variants, OpenAI GPT-5.x entries, Grok, Kimi K2.7 Code, and Qwen3-VL; text-only models such as MiniMax M3 stay unchanged.
models.generated.tsand the Prime Inference model test are updated to match.Reviewed by Cursor Bugbot for commit fc5a65d. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Enable image input for vision-capable Prime Inference models
Adds a
visionflag toPrimeInferenceModelMetadatain generate-models.ts and sets it totruefor several Anthropic Claude, OpenAI GPT 5.x, Kimi, Qwen, and Grok model variants. ThecreatePrimeInferenceModelfactory now setsinputto["text", "image"]for vision-flagged models instead of["text"]only. The generated models.generated.ts reflects these updated input declarations.Macroscope summarized fc5a65d.