[PR #244] [MERGED] refactor: replace baseSSEService with baseSSEWithSession in multiple … #396

Closed
opened 2026-02-16 01:15:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/244
Author: @Yeuoly
Created: 4/25/2025
Status: Merged
Merged: 4/25/2025
Merged by: @Yeuoly

Base: mainHead: refactor/simplify-plugin-invocation


📝 Commits (1)

  • 578706b refactor: replace baseSSEService with baseSSEWithSession in multiple service files

📊 Changes

4 files changed (+114 additions, -270 deletions)

View changed files

📝 internal/service/base_sse.go (+34 -0)
📝 internal/service/invoke_agent.go (+5 -18)
📝 internal/service/invoke_model.go (+60 -200)
📝 internal/service/invoke_tool.go (+15 -52)

📄 Description

…service files

  • Introduced baseSSEWithSession to streamline session management across various service functions.
  • Updated InvokeAgentStrategy, InvokeLLM, InvokeTextEmbedding, InvokeRerank, InvokeTTS, InvokeSpeech2Text, InvokeModeration, ValidateProviderCredentials, ValidateModelCredentials, GetTTSModelVoices, GetTextEmbeddingNumTokens, GetAIModelSchema, and GetLLMNumTokens to utilize the new session handling approach, improving code readability and maintainability.

🔄 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-plugin-daemon/pull/244 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 4/25/2025 **Status:** ✅ Merged **Merged:** 4/25/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `refactor/simplify-plugin-invocation` --- ### 📝 Commits (1) - [`578706b`](https://github.com/langgenius/dify-plugin-daemon/commit/578706ba2652a1a1422d4490b8f7d487826470ab) refactor: replace baseSSEService with baseSSEWithSession in multiple service files ### 📊 Changes **4 files changed** (+114 additions, -270 deletions) <details> <summary>View changed files</summary> 📝 `internal/service/base_sse.go` (+34 -0) 📝 `internal/service/invoke_agent.go` (+5 -18) 📝 `internal/service/invoke_model.go` (+60 -200) 📝 `internal/service/invoke_tool.go` (+15 -52) </details> ### 📄 Description …service files - Introduced baseSSEWithSession to streamline session management across various service functions. - Updated InvokeAgentStrategy, InvokeLLM, InvokeTextEmbedding, InvokeRerank, InvokeTTS, InvokeSpeech2Text, InvokeModeration, ValidateProviderCredentials, ValidateModelCredentials, GetTTSModelVoices, GetTextEmbeddingNumTokens, GetAIModelSchema, and GetLLMNumTokens to utilize the new session handling approach, improving code readability and maintainability. --- <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-16 01:15:50 -05:00
yindo closed this issue 2026-02-16 01:15:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#396