[PR #1028] [MERGED] feat: hf inference endpoint stream support #22845

Closed
opened 2026-02-21 20:19:52 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/1028
Author: @takatost
Created: 8/26/2023
Status: Merged
Merged: 8/26/2023
Merged by: @takatost

Base: mainHead: feat/hf-stream-support


📝 Commits (3)

📊 Changes

14 files changed (+128 additions, -40 deletions)

View changed files

📝 api/core/model_providers/models/llm/anthropic_model.py (+2 -2)
📝 api/core/model_providers/models/llm/azure_openai_model.py (+3 -3)
📝 api/core/model_providers/models/llm/base.py (+4 -4)
📝 api/core/model_providers/models/llm/chatglm_model.py (+0 -4)
📝 api/core/model_providers/models/llm/huggingface_hub_model.py (+13 -4)
📝 api/core/model_providers/models/llm/openai_model.py (+2 -2)
📝 api/core/model_providers/models/llm/openllm_model.py (+0 -4)
📝 api/core/model_providers/models/llm/replicate_model.py (+3 -3)
📝 api/core/model_providers/models/llm/spark_model.py (+3 -3)
📝 api/core/model_providers/models/llm/tongyi_model.py (+2 -2)
📝 api/core/model_providers/models/llm/wenxin_model.py (+0 -4)
📝 api/core/model_providers/models/llm/xinference_model.py (+2 -2)
📝 api/core/third_party/langchain/llms/huggingface_endpoint_llm.py (+91 -2)
📝 api/tests/unit_tests/model_providers/test_huggingface_hub_provider.py (+3 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify/pull/1028 **Author:** [@takatost](https://github.com/takatost) **Created:** 8/26/2023 **Status:** ✅ Merged **Merged:** 8/26/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `feat/hf-stream-support` --- ### 📝 Commits (3) - [`3bad77d`](https://github.com/langgenius/dify/commit/3bad77d701b28263db2c6524f921c47017636396) feat: hf stream support - [`1f69c19`](https://github.com/langgenius/dify/commit/1f69c191e5081bbaa000fac40837b2702db68f52) feat: add hf ie stream support - [`7a23f0a`](https://github.com/langgenius/dify/commit/7a23f0af3abe3a3f5433ef26afe37f94f4b11d69) fix: tests ### 📊 Changes **14 files changed** (+128 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `api/core/model_providers/models/llm/anthropic_model.py` (+2 -2) 📝 `api/core/model_providers/models/llm/azure_openai_model.py` (+3 -3) 📝 `api/core/model_providers/models/llm/base.py` (+4 -4) 📝 `api/core/model_providers/models/llm/chatglm_model.py` (+0 -4) 📝 `api/core/model_providers/models/llm/huggingface_hub_model.py` (+13 -4) 📝 `api/core/model_providers/models/llm/openai_model.py` (+2 -2) 📝 `api/core/model_providers/models/llm/openllm_model.py` (+0 -4) 📝 `api/core/model_providers/models/llm/replicate_model.py` (+3 -3) 📝 `api/core/model_providers/models/llm/spark_model.py` (+3 -3) 📝 `api/core/model_providers/models/llm/tongyi_model.py` (+2 -2) 📝 `api/core/model_providers/models/llm/wenxin_model.py` (+0 -4) 📝 `api/core/model_providers/models/llm/xinference_model.py` (+2 -2) 📝 `api/core/third_party/langchain/llms/huggingface_endpoint_llm.py` (+91 -2) 📝 `api/tests/unit_tests/model_providers/test_huggingface_hub_provider.py` (+3 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 20:19:52 -05:00
yindo closed this issue 2026-02-21 20:19:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22845