chore: providers should default on (#5083)

* chore: providers should default on

* chore: add emoji image source

* chore: correct connect-src
This commit is contained in:
Louis 2025-05-23 16:26:17 +07:00 committed by GitHub
parent 56f4ec3b61
commit 634efb9d9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
"font-src": [ "font-src": [
"https://fonts.gstatic.com blob: data: tauri://localhost http://tauri.localhost" "https://fonts.gstatic.com blob: data: tauri://localhost http://tauri.localhost"
], ],
"img-src": "'self' asset: http://asset.localhost blob: data:", "img-src": "'self' asset: http://asset.localhost blob: data: https://cdn.jsdelivr.net",
"style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com", "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com",
"script-src": "'self' asset: $APPDATA/**.* http://asset.localhost" "script-src": "'self' asset: $APPDATA/**.* http://asset.localhost"
}, },

View File

@ -55,7 +55,7 @@ export const useModelProvider = create<ModelProviderState>()(
}), }),
api_key: existingProvider?.api_key || provider.api_key, api_key: existingProvider?.api_key || provider.api_key,
base_url: existingProvider?.base_url || provider.base_url, base_url: existingProvider?.base_url || provider.base_url,
active: existingProvider ? existingProvider?.active : false, active: existingProvider ? existingProvider?.active : true,
} }
}) })