Skip to content

feat(cli): Multimodal serve images#1184

Open
markstur wants to merge 2 commits into
generative-computing:mainfrom
markstur:multimodal-serve-images
Open

feat(cli): Multimodal serve images#1184
markstur wants to merge 2 commits into
generative-computing:mainfrom
markstur:multimodal-serve-images

Conversation

@markstur
Copy link
Copy Markdown
Contributor

@markstur markstur commented Jun 2, 2026

Pull Request

Issue

Part of #1065

Description

Add image support to the cli "m serve".

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code was added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

Attribution

  • AI coding assistants used

Adding a new component, requirement, sampling strategy, or tool?

If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.

  • Component
  • Requirement
  • Sampling Strategy
  • Tool

NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.

markstur added 2 commits May 29, 2026 16:06
* Converts incoming openai api ChatMessage w/ images to Mellea messages w/ ImageBlock
* Examples for using with "m serve" module

Assisted-by: IBM Bob
Signed-off-by: Mark Sturdevant <mark.sturdevant@ibm.com>
* Removed the conversion from ChatMessage to Message because
  the type change is to much of a breaking change
* Add converting of texts(s) and images in more of an opt-in way.
* Add prefix stripping for Ollama because Ollama is not doing OpenAI right
* Fix examples

Signed-off-by: Mark Sturdevant <mark.sturdevant@ibm.com>
@markstur markstur requested a review from a team as a code owner June 2, 2026 00:40
@markstur markstur changed the title Multimodal serve images feat(cli): Multimodal serve images Jun 2, 2026
@github-actions github-actions Bot added the enhancement New feature or request label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant