Skip to content

fix(cohere): expose custom and embed-v4.0 text embedding models - #3769

Merged
crazywoola merged 2 commits into
langgenius:mainfrom
Souravrajvi0:feat/cohere-embed-v4-custom-models-70e3
Sep 3, 2026
Merged

crazywoola merged 2 commits into
langgenius:mainfrom
Souravrajvi0:feat/cohere-embed-v4-custom-models-70e3

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes langgenius/dify#41422

Summary

Custom Cohere text-embedding models (e.g. embed-v4.0) could be configured in Model Provider settings but were silently omitted from Knowledge Base embedding pickers.

  • Add embed-v4.0 as a predefined text-embedding model
  • Implement get_customizable_model_schema() on CohereTextEmbeddingModel so user-added custom embedding model names synthesize a schema instead of being skipped
  • Bump plugin version to 0.0.18

Root cause

Dify's provider configuration layer skips custom models when get_model_schema() returns None. The Cohere LLM class already implemented get_customizable_model_schema(), but the text-embedding class did not.

Release Notes

  • Add Cohere embed-v4.0 as a predefined text embedding model
  • Custom Cohere embedding model names now appear in Knowledge Base embedding pickers

Test plan

  • uv run --with pytest pytest models/cohere/tests/test_text_embedding_custom_schema.py

Add embed-v4.0 as a predefined model and implement
get_customizable_model_schema for Cohere text embeddings so custom model
credentials appear in Knowledge Base pickers.

Fixes langgenius/dify#41422
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Aug 28, 2026
@crazywoola
crazywoola deployed to models/cohere September 3, 2026 02:33 — with GitHub Actions Active
@crazywoola
crazywoola merged commit 606e005 into langgenius:main Sep 3, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
models/cohere — c2137113 Deployed Sep 3, 2026 by crazywoola via test (models/cohere) #2627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Knowledge Base] Does not show custom added cohere models

2 participants