Skip to content

feat(orchestration): Allow array for encoding_format in EmbeddingModelParams - #1823

Draft
InjunPark-sap wants to merge 1 commit into
mainfrom
feat/orchestration-embedding-multi-format
Draft

feat(orchestration): Allow array for encoding_format in EmbeddingModelParams#1823
InjunPark-sap wants to merge 1 commit into
mainfrom
feat/orchestration-embedding-multi-format

Conversation

@InjunPark-sap

Copy link
Copy Markdown
Member

What changed

  • EmbeddingModelParams.encoding_format: EncodingFormatEncodingFormat | EncodingFormat[]
  • Added type tests for single value, array, and invalid format rejection

Why

The generated spec (embeddings-model-params.ts) already allows EncodingFormat | EncodingFormat[], but the SDK public type was more restrictive.

Cohere Embed v4 accepts an array of embedding_types and returns EmbeddingMultiFormat — this change unblocks that use case.

@InjunPark-sap
InjunPark-sap requested a review from KavithaSiva May 5, 2026 11:38
@InjunPark-sap InjunPark-sap self-assigned this May 5, 2026
@InjunPark-sap InjunPark-sap added the blocked Issue or PR blocked due to other issues. label May 5, 2026
@InjunPark-sap InjunPark-sap changed the title feat(orchestration): allow array for encoding_format in EmbeddingModelParams feat(orchestration): Allow array for encoding_format in EmbeddingModelParams May 5, 2026

@davidkna-sap davidkna-sap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we were discussing if this needs additional convenience.
In general, you probably want to revert all changes from #1740 as part of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Issue or PR blocked due to other issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants