Repository navigation
feat: add explicit dimension and other params to MultiModalEmbeddingParam - #273
Merged
Merged
Conversation
…aram Align MultiModalEmbeddingParam with Python SDK by exposing dimension, output_type, fps, instruct, enable_fusion, res_level and max_video_frames as explicit builder fields. Generic .parameter() channel still takes precedence for backward compatibility. Add unit tests for serialization.
lzsweb
force-pushed
the
dev/issues-9
branch
from
September 14, 2026 09:59
9825635 to
a424852
Compare
- 更新 pom.xml 中的版本号 - 更新 Version.java 中的版本号
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.
背景
Closes #272
用户反馈调用 Multimodal-Embedding 做图片向量化时无法设置维度(
expected 1152 dimensions, not 1024),MultiModalEmbeddingParam未提供显式的dimension字段。改动
MultiModalEmbeddingParam补齐与 Python SDK 对齐的显式参数(复用TextEmbeddingParam的既有模式):dimensiondimensionoutputTypeoutput_type"dense"fpsfpsinstructinstructenableFusionenable_fusionresLevelres_levelmaxVideoFramesmax_video_framesgetParameters():显式字段序列化进parameters;通用.parameter(k, v)通道保持可用且优先级更高(向后兼容,旧代码不受影响)getHttpBody()改用getParameters()用法
测试
新增
TestMultiModalEmbeddingParam(4 个用例):dimension 序列化 / 7 参数全量序列化 / 通用.parameter()兼容 / 无参数不注入多余键。