feat(core): improve byok ux (#15303)

fix #15265

#### PR Dependency Tree


* **PR #15303** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)
This commit is contained in:
DarkSky
2026-07-21 19:52:34 +08:00
committed by GitHub
parent 7318ef1ed4
commit b6b7f1eeaf
22 changed files with 381 additions and 85 deletions
+8
View File
@@ -6140,6 +6140,14 @@ export function useAFFiNEI18N(): {
* `Endpoint`
*/
["com.affine.settings.workspace.byok.field.endpoint"](): string;
/**
* `Custom endpoints are disabled by the server administrator. In Self-hosted Admin, enable copilot.byok.allowCustomEndpoint.`
*/
["com.affine.settings.workspace.byok.endpoint.custom-disabled"](): string;
/**
* `Private network endpoints additionally require the server administrator to enable copilot.byok.allowPrivateEndpoint.`
*/
["com.affine.settings.workspace.byok.endpoint.private-disabled"](): string;
/**
* `Primary`
*/
@@ -1532,6 +1532,8 @@
"com.affine.settings.workspace.byok.field.storage": "Key storage",
"com.affine.settings.workspace.byok.field.api-key": "API key",
"com.affine.settings.workspace.byok.field.endpoint": "Endpoint",
"com.affine.settings.workspace.byok.endpoint.custom-disabled": "Custom endpoints are disabled by the server administrator. In Self-hosted Admin, enable copilot.byok.allowCustomEndpoint.",
"com.affine.settings.workspace.byok.endpoint.private-disabled": "Private network endpoints additionally require the server administrator to enable copilot.byok.allowPrivateEndpoint.",
"com.affine.settings.workspace.byok.placeholder.key-name": "Primary",
"com.affine.settings.workspace.byok.placeholder.description": "Workspace fallback key",
"com.affine.settings.workspace.byok.action.add-key": "Add key",
@@ -1532,6 +1532,8 @@
"com.affine.settings.workspace.byok.field.storage": "密钥存储",
"com.affine.settings.workspace.byok.field.api-key": "API key",
"com.affine.settings.workspace.byok.field.endpoint": "Endpoint",
"com.affine.settings.workspace.byok.endpoint.custom-disabled": "服务器管理员已禁用自定义端点。请在自托管管理后台启用 copilot.byok.allowCustomEndpoint。",
"com.affine.settings.workspace.byok.endpoint.private-disabled": "私有网络端点还需要服务器管理员启用 copilot.byok.allowPrivateEndpoint。",
"com.affine.settings.workspace.byok.placeholder.key-name": "Primary",
"com.affine.settings.workspace.byok.placeholder.description": "工作区回退密钥",
"com.affine.settings.workspace.byok.action.add-key": "添加密钥",