Repository navigation
feat: support configurable API base URL for Feishu plugins - #4153
Open
tomorrowthief wants to merge 2 commits into
Open
tomorrowthief wants to merge 2 commits into
tomorrowthief wants to merge 2 commits into
Conversation
2 of 4 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #4151.
The seven Feishu tool plugins currently hardcode their proxy service URL. Add an optional
api_base_urlprovider credential so self-hosted deployments can use a compatible internal gateway without modifying and repackaging the plugins.https://lark-plugin-api.solutionsuite.cn/lark-pluginas both the UI default and the runtime fallback for missing or blank values.Affected plugins: Feishu Base, Calendar, Document, Message, Spreadsheet, Task, and Wiki. This changes existing official plugins; it does not add a community plugin.
Release Notes
Feishu plugins now support an optional API Base URL in provider credentials for compatible self-hosted proxy services. The existing service remains the default. Custom endpoints must implement the current proxy API contract; the Feishu Open Platform URL is not a direct replacement.
Change Type
Screenshots / Videos
Configuration dialog from a locally installed
-testpackage. The API Base URL field displays the existing service URL by default. App credentials are blank. Test labels include-testsuffixes; production labels in this PR do not. This screenshot confirms installation and configuration UI only, not successful authentication or tool execution.Version
versionin all sevenmanifest.yamlfiles to 0.1.0.Testing
Passed Python syntax compilation for all affected Python files.
Ran an offline harness against all seven actual client and authentication definitions with mocked HTTP requests: verified missing/blank defaults, custom URL normalization and path prefixes, instance isolation, invalid URL rejection, and custom endpoints for both token acquisition and a document API request.
Checked all affected tool client initialization sites for credential forwarding.
No live Dify deployment or Feishu integration test was performed. The offline harness bypasses the Dify runtime imports; production-environment validation is still needed.
Local deployment
SaaS (cloud.dify.ai)
Supersedes #4152 to use the
feature/branch prefix. The code is unchanged.