mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
feat(server): refactor for byok (#14911)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user