Skip to content

fix(embedding): make dimensions parameter optional in OpenAITextEmbed…#1437

Closed
BlueStar0821 wants to merge 1 commit into
agentscope-ai:mainfrom
BlueStar0821:fix/optional-embedding-dimensions
Closed

fix(embedding): make dimensions parameter optional in OpenAITextEmbed…#1437
BlueStar0821 wants to merge 1 commit into
agentscope-ai:mainfrom
BlueStar0821:fix/optional-embedding-dimensions

Conversation

@BlueStar0821
Copy link
Copy Markdown

…ding

The dimensions parameter was mandatory, preventing non-OpenAI embedding models from working through OpenAITextEmbedding. Making it optional allows third-party providers to use the model's default dimensions.

Fixes #1095

AgentScope-Java Version

[The version of AgentScope-Java you are working on, e.g. 1.0.12, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]

Description

[Please describe the background, purpose, changes made, and how to test this PR]

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

…ding

The dimensions parameter was mandatory, preventing non-OpenAI embedding
models from working through OpenAITextEmbedding. Making it optional
allows third-party providers to use the model's default dimensions.

Fixes agentscope-ai#1095

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@BlueStar0821 BlueStar0821 requested a review from a team May 19, 2026 03:51
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 19, 2026

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ope/core/embedding/openai/OpenAITextEmbedding.java 66.66% 0 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

@BlueStar0821 BlueStar0821 deleted the fix/optional-embedding-dimensions branch May 20, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]:OpenAITextEmbedding 组件存在设计缺陷

2 participants