Parcourir la source

Merge branch 'langgenius:main' into feat/python-compileall-extra-args

Jingxiao GU il y a 4 mois
Parent
commit
b3f12fac1b

+ 3 - 3
cmd/commandline/plugin/templates/python/GUIDE.md

@@ -51,9 +51,9 @@ Now you can edit the `manifest.yaml` file to describe your Plugin, here is the b
       - size(int64):Maximum allowed persistent memory, unit bytes
 - plugins(object, required):Plugin extension specific ability yaml file list, absolute path in the plugin package, if you need to extend the model, you need to define a file like openai.yaml, and fill in the path here, and the file on the path must exist, otherwise the packaging will fail.
   - Format
-    - tools(list[string]): Extended tool suppliers, as for the detailed format, please refer to [Tool Guide](https://docs.dify.ai/docs/plugins/standard/tool_provider)
-    - models(list[string]):Extended model suppliers, as for the detailed format, please refer to [Model Guide](https://docs.dify.ai/docs/plugins/standard/model_provider)
-    - endpoints(list[string]):Extended Endpoints suppliers, as for the detailed format, please refer to [Endpoint Guide](https://docs.dify.ai/docs/plugins/standard/endpoint_group)
+    - tools(list[string]): Extended tool suppliers, as for the detailed format, please refer to [Tool Guide](https://docs.dify.ai/plugins/schema-definition/tool)
+    - models(list[string]):Extended model suppliers, as for the detailed format, please refer to [Model Guide](https://docs.dify.ai/plugins/schema-definition/model)
+    - endpoints(list[string]):Extended Endpoints suppliers, as for the detailed format, please refer to [Endpoint Guide](https://docs.dify.ai/plugins/schema-definition/endpoint)
   - Restrictions
     - Not allowed to extend both tools and models
     - Not allowed to have no extension

+ 1 - 0
internal/core/plugin_manager/serverless_runtime/io.go

@@ -91,6 +91,7 @@ func (r *AWSPluginRuntime) Write(sessionId string, action access_types.PluginAcc
 
 		// write to data stream
 		scanner := bufio.NewScanner(response.Body)
+		defer response.Body.Close()
 
 		// TODO: set a reasonable buffer size or use a reader, this is a temporary solution
 		scanner.Buffer(make([]byte, 1024), 5*1024*1024)