langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.17k stars 7.37k forks source link

Add Volcengine Doubao-embedding model error #4430

Closed dn833 closed 5 months ago

dn833 commented 5 months ago

Self Checks

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

When I add Volcengine Doubao-embedding ,got the error message “2 validation errors for EmbeddingUsage tokens none is not an allowed value (type=type_error.none.not_allowed) total_tokens none is not an allowed value (type=type_error.none.not_allowed)” WechatIMG4163

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 5 months ago

Hey there, @dn833! 👋 I'm Dosu, a friendly bot here to lend a hand with bugs, answer your questions, and guide you on your journey to becoming a contributor. While we wait for a human maintainer, I'm diving into your issue to get things rolling. Expect a detailed follow-up soon! 🚀

sinomoe commented 5 months ago

fixed in #4431

dosubot[bot] commented 5 months ago

It looks like the issue you encountered with the Volcengine Doubao-embedding model has been addressed and fixed in #4431. If you're still experiencing problems or have any further questions, feel free to reach out for more assistance.

#### Details **Sources** - [Failed to add embedding models in LocalAI to dify](https://github.com/langgenius/dify/issues/4124) - [Support xinference embedding model](https://github.com/langgenius/dify/issues/1175) - [api/tests/integration_tests/model_runtime/volcengine_maas/test_embedding.py](https://github.com/langgenius/dify/blob/main/api/tests/integration_tests/model_runtime/volcengine_maas/test_embedding.py) - [api/core/model_runtime/model_providers/volcengine_maas/volcengine_maas.yaml](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/volcengine_maas/volcengine_maas.yaml) - [api/.env.example](https://github.com/langgenius/dify/blob/main/api/.env.example) - [api/tests/integration_tests/model_runtime/volcengine_maas/test_llm.py](https://github.com/langgenius/dify/blob/main/api/tests/integration_tests/model_runtime/volcengine_maas/test_llm.py) - [api/core/model_runtime/model_providers/volcengine_maas/errors.py](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/volcengine_maas/errors.py)
**About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.