Skip to content

test(embed): cover OpenAI dimension override - #118

Merged
Grivn merged 1 commit into
masterfrom
codex/issue-117-openai-embeddings
Aug 30, 2026
Merged

test(embed): cover OpenAI dimension override#118
Grivn merged 1 commit into
masterfrom
codex/issue-117-openai-embeddings

Conversation

@Grivn

@Grivn Grivn commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

  • cover an OpenAI-compatible embedding model that requires an explicit dimension override
  • assert that BAAI/bge-m3 and dimensions: 1024 are sent to /v1/embeddings
  • preserve the existing response parsing and authorization coverage

The production implementation already landed in #115. This PR adds regression coverage for the concrete SiliconFlow-style configuration reported in #117.

Verification

  • go test ./internal/memory/embed -count=1
  • make test

Related to #117.

Exercise the issue scenario with BAAI/bge-m3 and assert that MNEMON_EMBED_DIMENSIONS is sent alongside model, input, and authorization. The provider-neutral implementation was already present on master via PR 115.

Validated with the full embed package suite and make test.
@Grivn
Grivn merged commit 74df8ad into master Aug 30, 2026
2 checks passed
@Grivn
Grivn deleted the codex/issue-117-openai-embeddings branch August 30, 2026 19:51
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.

1 participant