plugin-ai-api 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/client/97.1bc5103fd9d995a8.js +10 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/client-v2/97.96da323832251796.js +10 -0
  4. package/dist/client-v2/index.js +1 -1
  5. package/dist/externalVersion.js +8 -8
  6. package/dist/locale/en-US.json +139 -138
  7. package/dist/locale/vi-VN.json +139 -138
  8. package/dist/locale/zh-CN.json +139 -138
  9. package/dist/server/billing.js +17 -9
  10. package/dist/server/collections/ai-api-model-prices.js +8 -0
  11. package/dist/server/collections/ai-api-usage-records.js +1 -0
  12. package/dist/server/migrations/20260827000000-add-cache-input-price.js +66 -0
  13. package/dist/server/routes/auth.js +16 -0
  14. package/dist/server/routes/embeddings.js +11 -1
  15. package/dist/server/usage.js +1 -0
  16. package/dist/server/utils/direct-llm-context.js +9 -8
  17. package/dist/server/validation.js +1 -0
  18. package/package.json +1 -1
  19. package/src/client/index.tsx +10 -10
  20. package/src/client/models/index.ts +12 -12
  21. package/src/client-v2/pages/ModelPricingPage.tsx +15 -0
  22. package/src/index.ts +11 -11
  23. package/src/locale/en-US.json +139 -138
  24. package/src/locale/vi-VN.json +139 -138
  25. package/src/locale/zh-CN.json +139 -138
  26. package/src/server/__tests__/billing-quota.test.ts +8 -2
  27. package/src/server/__tests__/billing.test.ts +13 -0
  28. package/src/server/__tests__/usage.test.ts +1 -0
  29. package/src/server/billing.ts +29 -6
  30. package/src/server/collections/ai-api-model-prices.ts +8 -0
  31. package/src/server/collections/ai-api-usage-records.ts +1 -0
  32. package/src/server/migrations/20260827000000-add-cache-input-price.ts +49 -0
  33. package/src/server/routes/auth.ts +21 -1
  34. package/src/server/routes/embeddings.ts +17 -3
  35. package/src/server/usage.ts +1 -0
  36. package/src/server/utils/direct-llm-context.ts +21 -11
  37. package/src/server/validation.ts +1 -0
  38. package/dist/client/97.9b6b2d2b01a4c060.js +0 -10
  39. package/dist/client-v2/97.36a42eff36bb3d8a.js +0 -10
@@ -1,138 +1,139 @@
1
- {
2
- "AI API Gateway": "Cổng AI API",
3
- "Configuration": "Cấu hình",
4
- "Default AI Employee": "AI Employee mặc định",
5
- "Enabled LLM Services": "Dịch vụ LLM được bật",
6
- "Rate Limit": "Giới hạn tốc độ",
7
- "Save Configuration": "Lưu cấu hình",
8
- "Configuration saved": "Đã lưu cấu hình",
9
- "Failed to save configuration": "Không thể lưu cấu hình",
10
- "API mode": "Chế độ API",
11
- "Direct LLM": "LLM trực tiếp",
12
- "AI Employee agent": "AI Employee agent",
13
- "Default LLM service": "Dịch vụ LLM mặc định",
14
- "Enable user quotas": "Bật quota theo người dùng",
15
- "Default reserved output tokens": "Số output token giữ chỗ mặc định",
16
- "Refresh": "Làm mới",
17
- "Model pricing": "Bảng giá model",
18
- "User quotas": "Quota người dùng",
19
- "Usage": "Lịch sử sử dụng",
20
- "LLM service": "Dịch vụ LLM",
21
- "Model": "Model",
22
- "Input price / 1M": "Giá input / 1 triệu token",
23
- "Output price / 1M": "Giá output / 1 triệu token",
24
- "Fixed request cost": "Chi phí cố định mỗi request",
25
- "Currency": "Tiền tệ",
26
- "Status": "Trạng thái",
27
- "Enabled": "Đang bật",
28
- "Disabled": "Đã tắt",
29
- "Actions": "Thao tác",
30
- "Edit": "Sửa",
31
- "Delete": "Xóa",
32
- "Delete this price?": "Xóa cấu hình giá này?",
33
- "Add price": "Thêm giá",
34
- "Edit price": "Sửa giá",
35
- "Effective from": "Hiệu lực từ",
36
- "Effective to": "Hiệu lực đến",
37
- "Notes": "Ghi chú",
38
- "Saved successfully": "Đã lưu thành công",
39
- "Deleted successfully": "Đã xóa thành công",
40
- "User": "Người dùng",
41
- "Period": "Chu kỳ",
42
- "Request limit": "Giới hạn request",
43
- "Token limit": "Giới hạn token",
44
- "Cost limit": "Giới hạn chi phí",
45
- "Timezone": "Múi giờ",
46
- "Unlimited": "Không giới hạn",
47
- "Add quota": "Thêm quota",
48
- "Edit quota": "Sửa quota",
49
- "Delete this quota?": "Xóa quota này?",
50
- "Daily": "Hàng ngày",
51
- "Monthly": "Hàng tháng",
52
- "Reject unpriced models": "Từ chối model chưa có giá",
53
- "Missing usage behavior": "Xử khi thiếu token usage",
54
- "Use reserved estimate": "Dùng số liệu giữ chỗ để ước tính",
55
- "Allow without token charge": "Cho phép không tính token",
56
- "Context overflow behavior": "Xử khi vượt context",
57
- "Reject request": "Từ chối request",
58
- "Truncate oldest conversation turns": "Cắt các lượt hội thoại cũ nhất",
59
- "Started at": "Bắt đầu lúc",
60
- "Requested model": "Model được yêu cầu",
61
- "Resolved service": "Service đã resolve",
62
- "Resolved model": "Model đã resolve",
63
- "Input tokens": "Input token",
64
- "Output tokens": "Output token",
65
- "Total tokens": "Tổng token",
66
- "Prompt cache tokens": "Prompt cache token",
67
- "Cost": "Chi phí",
68
- "Cost status": "Trạng thái chi phí",
69
- "Request ID": "Request ID",
70
- "Failed to load models": "Không thể tải danh sách model",
71
- "Select a model": "Chọn model",
72
- "Select an AI Employee": "Chọn AI Employee",
73
- "Usage guide": "Hướng dẫn sử dụng",
74
- "OpenAI-compatible endpoint": "Endpoint tương thích OpenAI",
75
- "Base URL": "Base URL",
76
- "Use a NocoBase API key as the Bearer token.": "Sử dụng NocoBase API key làm Bearer token.",
77
- "List available models": "Liệt model khả dụng",
78
- "Send a chat completion": "Gửi yêu cầu chat completion",
79
- "Usage filters": "Bộ lọc usage",
80
- "Time range": "Khoảng thời gian",
81
- "User ID": "User ID",
82
- "Succeeded": "Thành công",
83
- "Failed": "Thất bại",
84
- "Started": "Đã bắt đầu",
85
- "Apply filters": "Áp dụng bộ lọc",
86
- "Reset": "Đặt lại",
87
- "Requests": "Số request",
88
- "Total cost": "Tổng chi phí",
89
- "Usage records": "Chi tiết usage",
90
- "Model metadata": "Metadata model",
91
- "Add override": "Thêm override",
92
- "Edit override": "Sửa override",
93
- "Delete this override?": "Xóa override này?",
94
- "Context window": "Context window",
95
- "Max completion tokens": "Max completion tokens",
96
- "Owned by": "Nhà cung cấp",
97
- "Display name": "Tên hiển thị",
98
- "Description": " tả",
99
- "Leave empty to not override": "Để trống nếu không override",
100
- "Total input + output token capacity reported to clients.": "Tổng dung lượng token (input + output) trả về cho client.",
101
- "Maximum output tokens reported to clients.": "Số token output tối đa trả về cho client.",
102
- "Initial system prompt": "System prompt khởi tạo",
103
- "Prepended as the first system message, before any system prompt sent by the client. If the client sends no system prompt, this becomes the system prompt sent to the provider.": "Được thêm vào làm system message đầu tiên, đứng trước mọi system prompt client gửi sang. Nếu client không gửi system prompt, đây sẽ là system prompt được gửi tới provider.",
104
- "AI API": "AI API",
105
- "Allow this role to use the AI API": "Cho phép vai trò này sử dụng AI API",
106
- "Allow all AI Employees": "Cho phép tất cả AI Employee",
107
- "Select which AI Employees this role may use:": "Chọn AI Employee vai trò này được dùng:",
108
- "Select allowed AI Employees": "Chọn AI Employee được phép",
109
- "Max request body size (MB)": "Giới hạn kích thước request body (MB)",
110
- "Raise this to accept inline base64 images. Base64 adds about 33% to the original file size.": "Tăng giá trị này để nhận ảnh base64 gửi trực tiếp. Base64 làm tăng khoảng 33% so với kích thước tệp gốc.",
111
- "Usage groups": "Nhóm usage",
112
- "Add group": "Thêm nhóm",
113
- "Edit group": "Sửa nhóm",
114
- "Delete this group?": "Xóa nhóm này?",
115
- "Mode": "Chế độ",
116
- "Share": "Chia sẻ",
117
- "Per user": "Theo người dùng",
118
- "Rate limit per minute": "Giới hạn request/phút",
119
- "Members": "Thành viên",
120
- "Add member": "Thêm thành viên",
121
- "Member added": "Đã thêm thành viên",
122
- "Member removed": "Đã xóa thành viên",
123
- "Remove member?": "Xóa thành viên?",
124
- "Remove": "Xóa",
125
- "Search group by user": "Tìm nhóm theo người dùng",
126
- "User belongs to": "Người dùng thuộc nhóm",
127
- "User not found": "Không tìm thấy người dùng",
128
- "Default": "Mặc định",
129
- "Allowed LLM services": "Dịch vụ LLM được phép",
130
- "Allow all models": "Cho phép tất cả model",
131
- "Allowed models": "Model được phép",
132
- "Model access": "Quyền truy cập model",
133
- "All models": "Tất cả model",
134
- "All services": "Tất cả dịch vụ",
135
- "No models": "Không model nào",
136
- "Leave empty to allow every service enabled in the general configuration.": "Để trống để cho phép mọi dịch vụ đang được bật trong cấu hình chung.",
137
- "Users who do not belong to any other group automatically use this default group — no need to add members.": "Người dùng không thuộc nhóm nào khác sẽ tự động dùng nhóm mặc định này — không cần thêm thành viên."
138
- }
1
+ {
2
+ "AI API Gateway": "Cổng AI API",
3
+ "Configuration": "Cấu hình",
4
+ "Default AI Employee": "AI Employee mặc định",
5
+ "Enabled LLM Services": "Dịch vụ LLM được bật",
6
+ "Rate Limit": "Giới hạn tốc độ",
7
+ "Save Configuration": "Lưu cấu hình",
8
+ "Configuration saved": "Đã lưu cấu hình",
9
+ "Failed to save configuration": "Không thể lưu cấu hình",
10
+ "API mode": "Chế độ API",
11
+ "Direct LLM": "LLM trực tiếp",
12
+ "AI Employee agent": "AI Employee agent",
13
+ "Default LLM service": "Dịch vụ LLM mặc định",
14
+ "Enable user quotas": "Bật quota theo người dùng",
15
+ "Default reserved output tokens": "Số output token giữ chỗ mặc định",
16
+ "Refresh": "Làm mới",
17
+ "Model pricing": "Bảng giá model",
18
+ "User quotas": "Quota người dùng",
19
+ "Usage": "Lịch sử sử dụng",
20
+ "LLM service": "Dịch vụ LLM",
21
+ "Model": "Model",
22
+ "Input price / 1M": "Giá input / 1 triệu token",
23
+ "Cache input price / 1M": "Giá cache input / 1 triệu token",
24
+ "Output price / 1M": "Giá output / 1 triệu token",
25
+ "Fixed request cost": "Chi phí cố định mỗi request",
26
+ "Currency": "Tiền tệ",
27
+ "Status": "Trạng thái",
28
+ "Enabled": "Đang bật",
29
+ "Disabled": "Đã tắt",
30
+ "Actions": "Thao tác",
31
+ "Edit": "Sửa",
32
+ "Delete": "Xóa",
33
+ "Delete this price?": "Xóa cấu hình giá này?",
34
+ "Add price": "Thêm giá",
35
+ "Edit price": "Sửa giá",
36
+ "Effective from": "Hiệu lực từ",
37
+ "Effective to": "Hiệu lực đến",
38
+ "Notes": "Ghi chú",
39
+ "Saved successfully": "Đã lưu thành công",
40
+ "Deleted successfully": "Đã xóa thành công",
41
+ "User": "Người dùng",
42
+ "Period": "Chu kỳ",
43
+ "Request limit": "Giới hạn request",
44
+ "Token limit": "Giới hạn token",
45
+ "Cost limit": "Giới hạn chi phí",
46
+ "Timezone": "Múi giờ",
47
+ "Unlimited": "Không giới hạn",
48
+ "Add quota": "Thêm quota",
49
+ "Edit quota": "Sửa quota",
50
+ "Delete this quota?": "Xóa quota này?",
51
+ "Daily": "Hàng ngày",
52
+ "Monthly": "Hàng tháng",
53
+ "Reject unpriced models": "Từ chối model chưa giá",
54
+ "Missing usage behavior": "Xử khi thiếu token usage",
55
+ "Use reserved estimate": "Dùng số liệu giữ chỗ để ước tính",
56
+ "Allow without token charge": "Cho phép không tính token",
57
+ "Context overflow behavior": "Xử khi vượt context",
58
+ "Reject request": "Từ chối request",
59
+ "Truncate oldest conversation turns": "Cắt các lượt hội thoại cũ nhất",
60
+ "Started at": "Bắt đầu lúc",
61
+ "Requested model": "Model được yêu cầu",
62
+ "Resolved service": "Service đã resolve",
63
+ "Resolved model": "Model đã resolve",
64
+ "Input tokens": "Input token",
65
+ "Output tokens": "Output token",
66
+ "Total tokens": "Tổng token",
67
+ "Prompt cache tokens": "Prompt cache token",
68
+ "Cost": "Chi phí",
69
+ "Cost status": "Trạng thái chi phí",
70
+ "Request ID": "Request ID",
71
+ "Failed to load models": "Không thể tải danh sách model",
72
+ "Select a model": "Chọn model",
73
+ "Select an AI Employee": "Chọn AI Employee",
74
+ "Usage guide": "Hướng dẫn sử dụng",
75
+ "OpenAI-compatible endpoint": "Endpoint tương thích OpenAI",
76
+ "Base URL": "Base URL",
77
+ "Use a NocoBase API key as the Bearer token.": "Sử dụng NocoBase API key làm Bearer token.",
78
+ "List available models": "Liệt model khả dụng",
79
+ "Send a chat completion": "Gửi yêu cầu chat completion",
80
+ "Usage filters": "Bộ lọc usage",
81
+ "Time range": "Khoảng thời gian",
82
+ "User ID": "User ID",
83
+ "Succeeded": "Thành công",
84
+ "Failed": "Thất bại",
85
+ "Started": "Đã bắt đầu",
86
+ "Apply filters": "Áp dụng bộ lọc",
87
+ "Reset": "Đặt lại",
88
+ "Requests": "Số request",
89
+ "Total cost": "Tổng chi phí",
90
+ "Usage records": "Chi tiết usage",
91
+ "Model metadata": "Metadata model",
92
+ "Add override": "Thêm override",
93
+ "Edit override": "Sửa override",
94
+ "Delete this override?": "Xóa override này?",
95
+ "Context window": "Context window",
96
+ "Max completion tokens": "Max completion tokens",
97
+ "Owned by": "Nhà cung cấp",
98
+ "Display name": "Tên hiển thị",
99
+ "Description": " tả",
100
+ "Leave empty to not override": "Để trống nếu không override",
101
+ "Total input + output token capacity reported to clients.": "Tổng dung lượng token (input + output) trả về cho client.",
102
+ "Maximum output tokens reported to clients.": "Số token output tối đa trả về cho client.",
103
+ "Initial system prompt": "System prompt khởi tạo",
104
+ "Prepended as the first system message, before any system prompt sent by the client. If the client sends no system prompt, this becomes the system prompt sent to the provider.": "Được thêm vào làm system message đầu tiên, đứng trước mọi system prompt mà client gửi sang. Nếu client không gửi system prompt, đây sẽ là system prompt được gửi tới provider.",
105
+ "AI API": "AI API",
106
+ "Allow this role to use the AI API": "Cho phép vai trò này sử dụng AI API",
107
+ "Allow all AI Employees": "Cho phép tất cả AI Employee",
108
+ "Select which AI Employees this role may use:": "Chọn AI Employee mà vai trò này được dùng:",
109
+ "Select allowed AI Employees": "Chọn AI Employee được phép",
110
+ "Max request body size (MB)": "Giới hạn kích thước request body (MB)",
111
+ "Raise this to accept inline base64 images. Base64 adds about 33% to the original file size.": "Tăng giá trị này để nhận ảnh base64 gửi trực tiếp. Base64 làm tăng khoảng 33% so với kích thước tệp gốc.",
112
+ "Usage groups": "Nhóm usage",
113
+ "Add group": "Thêm nhóm",
114
+ "Edit group": "Sửa nhóm",
115
+ "Delete this group?": "Xóa nhóm này?",
116
+ "Mode": "Chế độ",
117
+ "Share": "Chia sẻ",
118
+ "Per user": "Theo người dùng",
119
+ "Rate limit per minute": "Giới hạn request/phút",
120
+ "Members": "Thành viên",
121
+ "Add member": "Thêm thành viên",
122
+ "Member added": "Đã thêm thành viên",
123
+ "Member removed": "Đã xóa thành viên",
124
+ "Remove member?": "Xóa thành viên?",
125
+ "Remove": "Xóa",
126
+ "Search group by user": "Tìm nhóm theo người dùng",
127
+ "User belongs to": "Người dùng thuộc nhóm",
128
+ "User not found": "Không tìm thấy người dùng",
129
+ "Default": "Mặc định",
130
+ "Allowed LLM services": "Dịch vụ LLM được phép",
131
+ "Allow all models": "Cho phép tất cả model",
132
+ "Allowed models": "Model được phép",
133
+ "Model access": "Quyền truy cập model",
134
+ "All models": "Tất cả model",
135
+ "All services": "Tất cả dịch vụ",
136
+ "No models": "Không model nào",
137
+ "Leave empty to allow every service enabled in the general configuration.": "Để trống để cho phép mọi dịch vụ đang được bật trong cấu hình chung.",
138
+ "Users who do not belong to any other group automatically use this default group — no need to add members.": "Người dùng không thuộc nhóm nào khác sẽ tự động dùng nhóm mặc định này — không cần thêm thành viên."
139
+ }
@@ -1,138 +1,139 @@
1
- {
2
- "AI API Gateway": "AI API 网关",
3
- "Configuration": "配置",
4
- "Default AI Employee": "默认 AI 员工",
5
- "Enabled LLM Services": "已启用 LLM 服务",
6
- "Rate Limit": "速率限制",
7
- "Save Configuration": "保存配置",
8
- "Configuration saved": "配置已保存",
9
- "Failed to save configuration": "保存配置失败",
10
- "API mode": "API 模式",
11
- "Direct LLM": "直接 LLM",
12
- "AI Employee agent": "AI 员工代理",
13
- "Default LLM service": "默认 LLM 服务",
14
- "Enable user quotas": "启用用户配额",
15
- "Default reserved output tokens": "默认预留输出令牌数",
16
- "Refresh": "刷新",
17
- "Model pricing": "模型定价",
18
- "User quotas": "用户配额",
19
- "Usage": "用量",
20
- "LLM service": "LLM 服务",
21
- "Model": "模型",
22
- "Input price / 1M": "输入价格 / 百万令牌",
23
- "Output price / 1M": "输出价格 / 百万令牌",
24
- "Fixed request cost": "每次请求固定费用",
25
- "Currency": "货币",
26
- "Status": "状态",
27
- "Enabled": "已启用",
28
- "Disabled": "已禁用",
29
- "Actions": "操作",
30
- "Edit": "编辑",
31
- "Delete": "删除",
32
- "Delete this price?": "删除此价格?",
33
- "Add price": "添加价格",
34
- "Edit price": "编辑价格",
35
- "Effective from": "生效时间",
36
- "Effective to": "失效时间",
37
- "Notes": "备注",
38
- "Saved successfully": "保存成功",
39
- "Deleted successfully": "删除成功",
40
- "User": "用户",
41
- "Period": "周期",
42
- "Request limit": "请求限制",
43
- "Token limit": "令牌限制",
44
- "Cost limit": "费用限制",
45
- "Timezone": "时区",
46
- "Unlimited": "无限制",
47
- "Add quota": "添加配额",
48
- "Edit quota": "编辑配额",
49
- "Delete this quota?": "删除此配额?",
50
- "Daily": "每日",
51
- "Monthly": "每月",
52
- "Reject unpriced models": "拒绝未定价模型",
53
- "Missing usage behavior": "缺少用量时的行为",
54
- "Use reserved estimate": "使用预留估算",
55
- "Allow without token charge": "允许且不计令牌",
56
- "Context overflow behavior": "上下文超限处理",
57
- "Reject request": "拒绝请求",
58
- "Truncate oldest conversation turns": "截断最早的对话轮次",
59
- "Started at": "开始时间",
60
- "Requested model": "请求模型",
61
- "Resolved service": "解析后的服务",
62
- "Resolved model": "解析后的模型",
63
- "Input tokens": "输入令牌",
64
- "Output tokens": "输出令牌",
65
- "Total tokens": "总令牌",
66
- "Prompt cache tokens": "提示缓存令牌",
67
- "Cost": "费用",
68
- "Cost status": "费用状态",
69
- "Request ID": "请求 ID",
70
- "Failed to load models": "加载模型失败",
71
- "Select a model": "选择模型",
72
- "Select an AI Employee": "选择 AI 员工",
73
- "Usage guide": "使用指南",
74
- "OpenAI-compatible endpoint": "OpenAI 兼容端点",
75
- "Base URL": "基础 URL",
76
- "Use a NocoBase API key as the Bearer token.": "使用 NocoBase API 密钥作为 Bearer Token。",
77
- "List available models": "列出可用模型",
78
- "Send a chat completion": "发送聊天补全请求",
79
- "Usage filters": "用量筛选",
80
- "Time range": "时间范围",
81
- "User ID": "用户 ID",
82
- "Succeeded": "成功",
83
- "Failed": "失败",
84
- "Started": "已开始",
85
- "Apply filters": "应用筛选",
86
- "Reset": "重置",
87
- "Requests": "请求数",
88
- "Total cost": "总费用",
89
- "Usage records": "用量记录",
90
- "Model metadata": "模型元数据",
91
- "Add override": "添加覆盖",
92
- "Edit override": "编辑覆盖",
93
- "Delete this override?": "确认删除此覆盖?",
94
- "Context window": "上下文窗口",
95
- "Max completion tokens": "最大输出 token 数",
96
- "Owned by": "所属方",
97
- "Display name": "显示名称",
98
- "Description": "描述",
99
- "Leave empty to not override": "留空则不覆盖",
100
- "Total input + output token capacity reported to clients.": "返回给客户端的输入+输出 token 总容量。",
101
- "Maximum output tokens reported to clients.": "返回给客户端的最大输出 token 数。",
102
- "Initial system prompt": "初始系统提示词",
103
- "Prepended as the first system message, before any system prompt sent by the client. If the client sends no system prompt, this becomes the system prompt sent to the provider.": "作为第一条 system 消息插入到客户端发送的任何 system 提示词之前。如果客户端未发送 system 提示词,此提示词将作为发送给提供商的 system 提示词。",
104
- "AI API": "AI API",
105
- "Allow this role to use the AI API": "允许此角色使用 AI API",
106
- "Allow all AI Employees": "允许所有 AI 员工",
107
- "Select which AI Employees this role may use:": "选择此角色可使用的 AI 员工:",
108
- "Select allowed AI Employees": "选择允许的 AI 员工",
109
- "Max request body size (MB)": "请求体大小上限(MB)",
110
- "Raise this to accept inline base64 images. Base64 adds about 33% to the original file size.": "调高此值以接收内联 base64 图片。base64 编码会使体积增加约 33%。",
111
- "Usage groups": "用量组",
112
- "Add group": "添加分组",
113
- "Edit group": "编辑分组",
114
- "Delete this group?": "删除此分组?",
115
- "Mode": "模式",
116
- "Share": "共享",
117
- "Per user": "按用户",
118
- "Rate limit per minute": "每分钟速率限制",
119
- "Members": "成员",
120
- "Add member": "添加成员",
121
- "Member added": "成员已添加",
122
- "Member removed": "成员已移除",
123
- "Remove member?": "移除成员?",
124
- "Remove": "移除",
125
- "Search group by user": "按用户搜索分组",
126
- "User belongs to": "用户属于",
127
- "User not found": "未找到用户",
128
- "Default": "默认",
129
- "Allowed LLM services": "允许的 LLM 服务",
130
- "Allow all models": "允许所有模型",
131
- "Allowed models": "允许的模型",
132
- "Model access": "模型访问",
133
- "All models": "所有模型",
134
- "All services": "所有服务",
135
- "No models": "未允许任何模型",
136
- "Leave empty to allow every service enabled in the general configuration.": "留空则允许通用配置中已启用的所有服务。",
137
- "Users who do not belong to any other group automatically use this default group — no need to add members.": "不属于其他分组的用户会自动使用此默认分组,无需手动添加成员。"
138
- }
1
+ {
2
+ "AI API Gateway": "AI API 网关",
3
+ "Configuration": "配置",
4
+ "Default AI Employee": "默认 AI 员工",
5
+ "Enabled LLM Services": "已启用 LLM 服务",
6
+ "Rate Limit": "速率限制",
7
+ "Save Configuration": "保存配置",
8
+ "Configuration saved": "配置已保存",
9
+ "Failed to save configuration": "保存配置失败",
10
+ "API mode": "API 模式",
11
+ "Direct LLM": "直接 LLM",
12
+ "AI Employee agent": "AI 员工代理",
13
+ "Default LLM service": "默认 LLM 服务",
14
+ "Enable user quotas": "启用用户配额",
15
+ "Default reserved output tokens": "默认预留输出令牌数",
16
+ "Refresh": "刷新",
17
+ "Model pricing": "模型定价",
18
+ "User quotas": "用户配额",
19
+ "Usage": "用量",
20
+ "LLM service": "LLM 服务",
21
+ "Model": "模型",
22
+ "Input price / 1M": "输入价格 / 百万令牌",
23
+ "Cache input price / 1M": "缓存输入价格 / 百万令牌",
24
+ "Output price / 1M": "输出价格 / 百万令牌",
25
+ "Fixed request cost": "每次请求固定费用",
26
+ "Currency": "货币",
27
+ "Status": "状态",
28
+ "Enabled": "已启用",
29
+ "Disabled": "已禁用",
30
+ "Actions": "操作",
31
+ "Edit": "编辑",
32
+ "Delete": "删除",
33
+ "Delete this price?": "删除此价格?",
34
+ "Add price": "添加价格",
35
+ "Edit price": "编辑价格",
36
+ "Effective from": "生效时间",
37
+ "Effective to": "失效时间",
38
+ "Notes": "备注",
39
+ "Saved successfully": "保存成功",
40
+ "Deleted successfully": "删除成功",
41
+ "User": "用户",
42
+ "Period": "周期",
43
+ "Request limit": "请求限制",
44
+ "Token limit": "令牌限制",
45
+ "Cost limit": "费用限制",
46
+ "Timezone": "时区",
47
+ "Unlimited": "无限制",
48
+ "Add quota": "添加配额",
49
+ "Edit quota": "编辑配额",
50
+ "Delete this quota?": "删除此配额?",
51
+ "Daily": "每日",
52
+ "Monthly": "每月",
53
+ "Reject unpriced models": "拒绝未定价模型",
54
+ "Missing usage behavior": "缺少用量时的行为",
55
+ "Use reserved estimate": "使用预留估算",
56
+ "Allow without token charge": "允许且不计令牌",
57
+ "Context overflow behavior": "上下文超限处理",
58
+ "Reject request": "拒绝请求",
59
+ "Truncate oldest conversation turns": "截断最早的对话轮次",
60
+ "Started at": "开始时间",
61
+ "Requested model": "请求模型",
62
+ "Resolved service": "解析后的服务",
63
+ "Resolved model": "解析后的模型",
64
+ "Input tokens": "输入令牌",
65
+ "Output tokens": "输出令牌",
66
+ "Total tokens": "总令牌",
67
+ "Prompt cache tokens": "提示缓存令牌",
68
+ "Cost": "费用",
69
+ "Cost status": "费用状态",
70
+ "Request ID": "请求 ID",
71
+ "Failed to load models": "加载模型失败",
72
+ "Select a model": "选择模型",
73
+ "Select an AI Employee": "选择 AI 员工",
74
+ "Usage guide": "使用指南",
75
+ "OpenAI-compatible endpoint": "OpenAI 兼容端点",
76
+ "Base URL": "基础 URL",
77
+ "Use a NocoBase API key as the Bearer token.": "使用 NocoBase API 密钥作为 Bearer Token。",
78
+ "List available models": "列出可用模型",
79
+ "Send a chat completion": "发送聊天补全请求",
80
+ "Usage filters": "用量筛选",
81
+ "Time range": "时间范围",
82
+ "User ID": "用户 ID",
83
+ "Succeeded": "成功",
84
+ "Failed": "失败",
85
+ "Started": "已开始",
86
+ "Apply filters": "应用筛选",
87
+ "Reset": "重置",
88
+ "Requests": "请求数",
89
+ "Total cost": "总费用",
90
+ "Usage records": "用量记录",
91
+ "Model metadata": "模型元数据",
92
+ "Add override": "添加覆盖",
93
+ "Edit override": "编辑覆盖",
94
+ "Delete this override?": "确认删除此覆盖?",
95
+ "Context window": "上下文窗口",
96
+ "Max completion tokens": "最大输出 token 数",
97
+ "Owned by": "所属方",
98
+ "Display name": "显示名称",
99
+ "Description": "描述",
100
+ "Leave empty to not override": "留空则不覆盖",
101
+ "Total input + output token capacity reported to clients.": "返回给客户端的输入+输出 token 总容量。",
102
+ "Maximum output tokens reported to clients.": "返回给客户端的最大输出 token 数。",
103
+ "Initial system prompt": "初始系统提示词",
104
+ "Prepended as the first system message, before any system prompt sent by the client. If the client sends no system prompt, this becomes the system prompt sent to the provider.": "作为第一条 system 消息插入到客户端发送的任何 system 提示词之前。如果客户端未发送 system 提示词,此提示词将作为发送给提供商的 system 提示词。",
105
+ "AI API": "AI API",
106
+ "Allow this role to use the AI API": "允许此角色使用 AI API",
107
+ "Allow all AI Employees": "允许所有 AI 员工",
108
+ "Select which AI Employees this role may use:": "选择此角色可使用的 AI 员工:",
109
+ "Select allowed AI Employees": "选择允许的 AI 员工",
110
+ "Max request body size (MB)": "请求体大小上限(MB)",
111
+ "Raise this to accept inline base64 images. Base64 adds about 33% to the original file size.": "调高此值以接收内联 base64 图片。base64 编码会使体积增加约 33%。",
112
+ "Usage groups": "用量组",
113
+ "Add group": "添加分组",
114
+ "Edit group": "编辑分组",
115
+ "Delete this group?": "删除此分组?",
116
+ "Mode": "模式",
117
+ "Share": "共享",
118
+ "Per user": "按用户",
119
+ "Rate limit per minute": "每分钟速率限制",
120
+ "Members": "成员",
121
+ "Add member": "添加成员",
122
+ "Member added": "成员已添加",
123
+ "Member removed": "成员已移除",
124
+ "Remove member?": "移除成员?",
125
+ "Remove": "移除",
126
+ "Search group by user": "按用户搜索分组",
127
+ "User belongs to": "用户属于",
128
+ "User not found": "未找到用户",
129
+ "Default": "默认",
130
+ "Allowed LLM services": "允许的 LLM 服务",
131
+ "Allow all models": "允许所有模型",
132
+ "Allowed models": "允许的模型",
133
+ "Model access": "模型访问",
134
+ "All models": "所有模型",
135
+ "All services": "所有服务",
136
+ "No models": "未允许任何模型",
137
+ "Leave empty to allow every service enabled in the general configuration.": "留空则允许通用配置中已启用的所有服务。",
138
+ "Users who do not belong to any other group automatically use this default group — no need to add members.": "不属于其他分组的用户会自动使用此默认分组,无需手动添加成员。"
139
+ }