-
-| Identifier |
-Description |
-
-
-
-
-|
-
-`foundation-models:allow-check-foundation-models-availability`
-
- |
-
-
-Enables the check_foundation_models_availability command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-check-foundation-models-availability`
-
- |
-
-
-Denies the check_foundation_models_availability command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-cleanup-foundation-models-processes`
-
- |
-
-
-Enables the cleanup_foundation_models_processes command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-cleanup-foundation-models-processes`
-
- |
-
-
-Denies the cleanup_foundation_models_processes command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-find-foundation-models-session`
-
- |
-
-
-Enables the find_foundation_models_session command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-find-foundation-models-session`
-
- |
-
-
-Denies the find_foundation_models_session command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-get-foundation-models-all-sessions`
-
- |
-
-
-Enables the get_foundation_models_all_sessions command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-get-foundation-models-all-sessions`
-
- |
-
-
-Denies the get_foundation_models_all_sessions command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-get-foundation-models-loaded`
-
- |
-
-
-Enables the get_foundation_models_loaded command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-get-foundation-models-loaded`
-
- |
-
-
-Denies the get_foundation_models_loaded command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-get-foundation-models-random-port`
-
- |
-
-
-Enables the get_foundation_models_random_port command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-get-foundation-models-random-port`
-
- |
-
-
-Denies the get_foundation_models_random_port command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-is-foundation-models-process-running`
-
- |
-
-
-Enables the is_foundation_models_process_running command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-is-foundation-models-process-running`
-
- |
-
-
-Denies the is_foundation_models_process_running command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-load-foundation-models-server`
-
- |
-
-
-Enables the load_foundation_models_server command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-load-foundation-models-server`
-
- |
-
-
-Denies the load_foundation_models_server command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:allow-unload-foundation-models-server`
-
- |
-
-
-Enables the unload_foundation_models_server command without any pre-configured scope.
-
- |
-
-
-
-|
-
-`foundation-models:deny-unload-foundation-models-server`
-
- |
-
-
-Denies the unload_foundation_models_server command without any pre-configured scope.
-
- |
-
-
diff --git a/src-tauri/plugins/tauri-plugin-foundation-models/permissions/default.toml b/src-tauri/plugins/tauri-plugin-foundation-models/permissions/default.toml
index 51bfddcb8..f2cd967d0 100644
--- a/src-tauri/plugins/tauri-plugin-foundation-models/permissions/default.toml
+++ b/src-tauri/plugins/tauri-plugin-foundation-models/permissions/default.toml
@@ -2,12 +2,11 @@
description = "Default permissions for the Foundation Models plugin"
permissions = [
"allow-cleanup-foundation-models-processes",
- "allow-load-foundation-models-server",
- "allow-unload-foundation-models-server",
- "allow-is-foundation-models-process-running",
- "allow-get-foundation-models-random-port",
- "allow-find-foundation-models-session",
- "allow-get-foundation-models-loaded",
- "allow-get-foundation-models-all-sessions",
"allow-check-foundation-models-availability",
+ "allow-load-foundation-models",
+ "allow-unload-foundation-models",
+ "allow-is-foundation-models-loaded",
+ "allow-foundation-models-chat-completion",
+ "allow-foundation-models-chat-completion-stream",
+ "allow-abort-foundation-models-stream",
]
diff --git a/src-tauri/plugins/tauri-plugin-foundation-models/permissions/schemas/schema.json b/src-tauri/plugins/tauri-plugin-foundation-models/permissions/schemas/schema.json
deleted file mode 100644
index 858d8817e..000000000
--- a/src-tauri/plugins/tauri-plugin-foundation-models/permissions/schemas/schema.json
+++ /dev/null
@@ -1,414 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "PermissionFile",
- "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
- "type": "object",
- "properties": {
- "default": {
- "description": "The default permission set for the plugin",
- "anyOf": [
- {
- "$ref": "#/definitions/DefaultPermission"
- },
- {
- "type": "null"
- }
- ]
- },
- "set": {
- "description": "A list of permissions sets defined",
- "type": "array",
- "items": {
- "$ref": "#/definitions/PermissionSet"
- }
- },
- "permission": {
- "description": "A list of inlined permissions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Permission"
- }
- }
- },
- "definitions": {
- "DefaultPermission": {
- "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
- "type": "object",
- "required": [
- "permissions"
- ],
- "properties": {
- "version": {
- "description": "The version of the permission.",
- "type": [
- "integer",
- "null"
- ],
- "format": "uint64",
- "minimum": 1.0
- },
- "description": {
- "description": "Human-readable description of what the permission does. Tauri convention is to use `