feat(server): refactor for byok (#14911)

This commit is contained in:
DarkSky
2026-05-07 04:03:14 +08:00
committed by GitHub
parent 4e169ea5c7
commit eb9cc22502
115 changed files with 10369 additions and 1256 deletions
+12 -8
View File
@@ -313,6 +313,18 @@
"type": "Boolean",
"desc": "Whether to enable the copilot plugin. <br> Document: <a href=\"https://docs.affine.pro/self-host-affine/administer/ai\" target=\"_blank\">https://docs.affine.pro/self-host-affine/administer/ai</a>"
},
"byok.enabled": {
"type": "Boolean",
"desc": "Whether to enable workspace BYOK."
},
"byok.allowedProviders": {
"type": "Array",
"desc": "The allowlist for workspace BYOK providers."
},
"byok.allowCustomEndpoint": {
"type": "Boolean",
"desc": "Whether workspace BYOK custom endpoints are accepted."
},
"providers.profiles": {
"type": "Array",
"desc": "The profile list for copilot providers."
@@ -342,10 +354,6 @@
"type": "Object",
"desc": "The config for the gemini provider in Google Vertex AI."
},
"providers.perplexity": {
"type": "Object",
"desc": "The config for the perplexity provider."
},
"providers.anthropic": {
"type": "Object",
"desc": "The config for the anthropic provider."
@@ -354,10 +362,6 @@
"type": "Object",
"desc": "The config for the anthropic provider in Google Vertex AI."
},
"providers.morph": {
"type": "Object",
"desc": "The config for the morph provider."
},
"unsplash": {
"type": "Object",
"desc": "The config for the unsplash key."
@@ -153,7 +153,6 @@ export const KNOWN_CONFIG_GROUPS = [
'scenarios',
'providers.openai',
'providers.gemini',
'providers.perplexity',
'providers.anthropic',
'providers.fal',
'unsplash',