mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-24 21:15:33 -04:00
a70d808dd0
* feat(dynamic_select): implement dynamic parameter fetching functionality - Added FetchDynamicParameterOptions function to handle dynamic parameter selection. - Introduced new access type and action for dynamic select in access_types. - Updated HTTP server routes to include the new endpoint for fetching dynamic parameters. - Created necessary service and controller files for dynamic select operations. * refactor(access_types): rename dynamic select access type to dynamic parameter - Updated access type constants to reflect the change from PLUGIN_ACCESS_TYPE_DYNAMIC_SELECT to PLUGIN_ACCESS_TYPE_DYNAMIC_PARAMETER. - Adjusted related references in the PluginDispatchers and FetchDynamicParameterOptions function to maintain consistency.
29 lines
1.6 KiB
Go
29 lines
1.6 KiB
Go
// Code generated by controller generator. DO NOT EDIT.
|
|
package server
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/langgenius/dify-plugin-daemon/internal/server/controllers"
|
|
"github.com/langgenius/dify-plugin-daemon/internal/types/app"
|
|
)
|
|
|
|
func (app *App) setupGeneratedRoutes(group *gin.RouterGroup, config *app.Config) {
|
|
group.POST("/tool/validate_credentials", controllers.ValidateToolCredentials(config))
|
|
group.POST("/tool/get_runtime_parameters", controllers.GetToolRuntimeParameters(config))
|
|
group.POST("/llm/invoke", controllers.InvokeLLM(config))
|
|
group.POST("/llm/num_tokens", controllers.GetLLMNumTokens(config))
|
|
group.POST("/text_embedding/invoke", controllers.InvokeTextEmbedding(config))
|
|
group.POST("/text_embedding/num_tokens", controllers.GetTextEmbeddingNumTokens(config))
|
|
group.POST("/rerank/invoke", controllers.InvokeRerank(config))
|
|
group.POST("/tts/invoke", controllers.InvokeTTS(config))
|
|
group.POST("/tts/model/voices", controllers.GetTTSModelVoices(config))
|
|
group.POST("/speech2text/invoke", controllers.InvokeSpeech2Text(config))
|
|
group.POST("/moderation/invoke", controllers.InvokeModeration(config))
|
|
group.POST("/model/validate_provider_credentials", controllers.ValidateProviderCredentials(config))
|
|
group.POST("/model/validate_model_credentials", controllers.ValidateModelCredentials(config))
|
|
group.POST("/model/schema", controllers.GetAIModelSchema(config))
|
|
group.POST("/oauth/get_authorization_url", controllers.GetAuthorizationURL(config))
|
|
group.POST("/oauth/get_credentials", controllers.GetCredentials(config))
|
|
group.POST("/dynamic_select/fetch_parameter_options", controllers.FetchDynamicParameterOptions(config))
|
|
}
|