mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1689] [MERGED] Add Lemonade Provider #2035
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1689
Author: @danielholanda
Created: 9/9/2025
Status: ✅ Merged
Merged: 9/15/2025
Merged by: @crazywoola
Base:
main← Head:dholanda/lemonade📝 Commits (10+)
3e65badInitial implementationc6f1f50Add icon and fix descriptionc332078Remove api keyccb7229Remove unecessary parameters57b8af8suppress function calling optionsb1b5004Fix verification issues683e97fHealthe63d02fFunctionald8cd4a8Good errors when server is not running98c9d66Add message when model not found📊 Changes
13 files changed (+770 additions, -0 deletions)
View changed files
➕
models/lemonade/.difyignore(+2 -0)➕
models/lemonade/README.md(+12 -0)➕
models/lemonade/_assets/icon.svg(+53 -0)➕
models/lemonade/main.py(+6 -0)➕
models/lemonade/manifest.yaml(+31 -0)➕
models/lemonade/models/common_openai.py(+58 -0)➕
models/lemonade/models/llm/llm.py(+297 -0)➕
models/lemonade/models/rerank/rerank.py(+28 -0)➕
models/lemonade/models/text_embedding/text_embedding.py(+29 -0)➕
models/lemonade/provider/lemonade.py(+17 -0)➕
models/lemonade/provider/lemonade.yaml(+89 -0)➕
models/lemonade/pyproject.toml(+21 -0)➕
models/lemonade/requirements.txt(+127 -0)📄 Description
Intro
Hi there 👋, I'm Daniel, one of the core developers of Lemonade. Lemonade is an LLM server that enables the use of NPU and GPU acceleration available on both Windows and Linux. We are backed by AMD, recently crossed over 1,000 stars on our GitHub, and are now we are even available of Hugging Face.
I recently came across Dify and found it very exciting! Although I was able to get Lemonade to work through the OpenAI-compatible plugin, a custom plugin for Lemonade seemed more interesting, as we can significantly improve the user experience by providing better options and error-handling for our tool. I took an initial stab at it, and got a custom plugin to work really quickly!
Given that this is a model provider, I would love for it to become part of the
dify-official-plugins. If we can get this type of native integration, we would also be happy to do some co-marketing with the Dify team (e.g., an AMD blog showing Dify+Lemonade).Please let me know what you think and I will be happy to work with you to get this integration done.
PR Description
The current PR shows an initial integration that is fully functional (at least on my side). If we get alignment that this is something we want to pursue, I will be happy to also create some nice documentation to go along with it.
Related Issues or Context
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.