plugin-ai-api 1.0.15 → 1.0.21
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.
- package/dist/client/286.01c0e3c5fff3cccb.js +10 -0
- package/dist/client/302.fc3a3491b4ec2dfd.js +10 -0
- package/dist/client/562.17a0a299d2e5152c.js +10 -0
- package/dist/client/757.a01403fb7a1bea01.js +10 -0
- package/dist/client/902.92e1daaf1ab16ebf.js +10 -0
- package/dist/client/97.72979a11a067a7c9.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/302.d27fe4ea9b0b3bf5.js +10 -0
- package/dist/client-v2/562.fb2948ee6402de95.js +10 -0
- package/dist/client-v2/757.a117ce1cf7119cea.js +10 -0
- package/dist/client-v2/902.9054d990ddc223ac.js +10 -0
- package/dist/client-v2/952.94100128b7757f56.js +10 -0
- package/dist/client-v2/97.29c663318eebbd57.js +10 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/constants.js +36 -0
- package/dist/externalVersion.js +9 -10
- package/dist/locale/en-US.json +105 -10
- package/dist/locale/vi-VN.json +105 -0
- package/dist/locale/zh-CN.json +105 -10
- package/dist/server/billing.js +331 -0
- package/dist/server/collections/ai-api-config.js +18 -0
- package/dist/server/collections/ai-api-model-metadata.js +83 -0
- package/dist/server/collections/ai-api-model-prices.js +55 -0
- package/dist/server/collections/ai-api-usage-records.js +9 -0
- package/dist/server/collections/ai-api-user-quota-buckets.js +54 -0
- package/dist/server/collections/ai-api-user-quota-policies.js +62 -0
- package/dist/server/plugin.js +36 -3
- package/dist/server/resource/ai-api-config.js +25 -0
- package/dist/server/resource/ai-api-usage-monitor.js +86 -0
- package/dist/server/routes/agent-completions.js +62 -51
- package/dist/server/routes/auth.js +11 -1
- package/dist/server/routes/chat-completions.js +157 -6
- package/dist/server/routes/completions.js +20 -3
- package/dist/server/routes/models.js +78 -20
- package/dist/server/routes/router.js +108 -23
- package/dist/server/usage.js +19 -2
- package/dist/server/utils/app-observability.js +110 -0
- package/dist/server/utils/streaming.js +15 -1
- package/dist/server/validation.js +120 -0
- package/dist/swagger.js +32 -1
- package/package.json +1 -1
- package/src/client/components/AiApiRolePermissions.tsx +11 -169
- package/src/client/locale.ts +11 -21
- package/src/client/plugin.tsx +82 -48
- package/src/client-v2/__tests__/settings-registration.test.tsx +58 -0
- package/src/client-v2/components/AiApiRolePermissions.tsx +173 -0
- package/src/client-v2/locale.ts +21 -0
- package/src/client-v2/pages/GeneralPage.tsx +183 -0
- package/src/client-v2/pages/ModelMetadataPage.tsx +280 -0
- package/src/client-v2/pages/ModelPricingPage.tsx +285 -0
- package/src/client-v2/pages/RolePermissionsTab.tsx +14 -0
- package/src/client-v2/pages/UsagePage.tsx +248 -0
- package/src/client-v2/pages/UserQuotasPage.tsx +258 -0
- package/src/client-v2/pages/api.ts +16 -0
- package/src/client-v2/plugin.tsx +62 -4
- package/src/constants.ts +21 -0
- package/src/locale/en-US.json +105 -10
- package/src/locale/vi-VN.json +105 -0
- package/src/locale/zh-CN.json +105 -10
- package/src/server/__tests__/app-observability.test.ts +98 -0
- package/src/server/__tests__/billing-quota.test.ts +134 -0
- package/src/server/__tests__/billing.test.ts +33 -0
- package/src/server/__tests__/models.test.ts +74 -0
- package/src/server/__tests__/request-body.test.ts +310 -0
- package/src/server/__tests__/streaming-observability.test.ts +51 -0
- package/src/server/__tests__/usage-monitor.test.ts +63 -0
- package/src/server/__tests__/usage-route.test.ts +4 -0
- package/src/server/billing.ts +387 -0
- package/src/server/collections/ai-api-config.ts +69 -51
- package/src/server/collections/ai-api-model-metadata.ts +72 -0
- package/src/server/collections/ai-api-model-prices.ts +25 -0
- package/src/server/collections/ai-api-usage-records.ts +9 -0
- package/src/server/collections/ai-api-user-quota-buckets.ts +24 -0
- package/src/server/collections/ai-api-user-quota-policies.ts +32 -0
- package/src/server/plugin.ts +47 -5
- package/src/server/resource/ai-api-config.ts +105 -74
- package/src/server/resource/ai-api-usage-monitor.ts +74 -0
- package/src/server/routes/agent-completions.ts +77 -62
- package/src/server/routes/auth.ts +14 -1
- package/src/server/routes/chat-completions.ts +275 -6
- package/src/server/routes/completions.ts +27 -4
- package/src/server/routes/models.ts +290 -195
- package/src/server/routes/router.ts +152 -27
- package/src/server/usage.ts +19 -1
- package/src/server/utils/app-observability.ts +105 -0
- package/src/server/utils/streaming.ts +13 -1
- package/src/server/validation.ts +89 -0
- package/src/swagger.ts +38 -1
- package/dist/client/778.5c452944cb747975.js +0 -10
- package/dist/client/950.83390c5f1d5a97fb.js +0 -10
- package/dist/client-v2/950.42b30b5cc9e32b8f.js +0 -10
- package/src/client/AiApiConfigPage.tsx +0 -309
package/dist/externalVersion.js
CHANGED
|
@@ -8,17 +8,16 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
+
"@nocobase/client": "2.1.34",
|
|
12
|
+
"@nocobase/plugin-acl": "2.1.34",
|
|
11
13
|
"react": "18.2.0",
|
|
12
|
-
"
|
|
13
|
-
"@nocobase/client-v2": "2.1.
|
|
14
|
-
"@nocobase/
|
|
15
|
-
"@nocobase/client": "2.1.30",
|
|
16
|
-
"@nocobase/plugin-acl": "2.1.30",
|
|
17
|
-
"@nocobase/server": "2.1.30",
|
|
14
|
+
"@nocobase/flow-engine": "2.1.34",
|
|
15
|
+
"@nocobase/client-v2": "2.1.34",
|
|
16
|
+
"@nocobase/actions": "2.1.34",
|
|
18
17
|
"dayjs": "1.11.13",
|
|
19
|
-
"@nocobase/
|
|
20
|
-
"@nocobase/database": "2.1.30",
|
|
18
|
+
"@nocobase/database": "2.1.34",
|
|
21
19
|
"sequelize": "6.35.2",
|
|
22
|
-
"@nocobase/
|
|
23
|
-
"
|
|
20
|
+
"@nocobase/server": "2.1.34",
|
|
21
|
+
"antd": "5.24.2",
|
|
22
|
+
"@nocobase/resourcer": "2.1.34"
|
|
24
23
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,10 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AI API Gateway": "AI API Gateway",
|
|
3
|
-
"Configuration": "Configuration",
|
|
4
|
-
"Default AI Employee": "Default AI Employee",
|
|
5
|
-
"Enabled LLM Services": "Enabled LLM Services",
|
|
6
|
-
"Rate Limit": "Rate Limit",
|
|
7
|
-
"Save Configuration": "Save Configuration",
|
|
8
|
-
"Configuration saved": "Configuration saved",
|
|
9
|
-
"Failed to save configuration": "Failed to save configuration"
|
|
10
|
-
|
|
1
|
+
{
|
|
2
|
+
"AI API Gateway": "AI API Gateway",
|
|
3
|
+
"Configuration": "Configuration",
|
|
4
|
+
"Default AI Employee": "Default AI Employee",
|
|
5
|
+
"Enabled LLM Services": "Enabled LLM Services",
|
|
6
|
+
"Rate Limit": "Rate Limit",
|
|
7
|
+
"Save Configuration": "Save Configuration",
|
|
8
|
+
"Configuration saved": "Configuration saved",
|
|
9
|
+
"Failed to save configuration": "Failed to save configuration",
|
|
10
|
+
"API mode": "API mode",
|
|
11
|
+
"Direct LLM": "Direct LLM",
|
|
12
|
+
"AI Employee agent": "AI Employee agent",
|
|
13
|
+
"Default LLM service": "Default LLM service",
|
|
14
|
+
"Enable user quotas": "Enable user quotas",
|
|
15
|
+
"Default reserved output tokens": "Default reserved output tokens",
|
|
16
|
+
"Refresh": "Refresh",
|
|
17
|
+
"Model pricing": "Model pricing",
|
|
18
|
+
"User quotas": "User quotas",
|
|
19
|
+
"Usage": "Usage",
|
|
20
|
+
"LLM service": "LLM service",
|
|
21
|
+
"Model": "Model",
|
|
22
|
+
"Input price / 1M": "Input price / 1M",
|
|
23
|
+
"Output price / 1M": "Output price / 1M",
|
|
24
|
+
"Fixed request cost": "Fixed request cost",
|
|
25
|
+
"Currency": "Currency",
|
|
26
|
+
"Status": "Status",
|
|
27
|
+
"Enabled": "Enabled",
|
|
28
|
+
"Disabled": "Disabled",
|
|
29
|
+
"Actions": "Actions",
|
|
30
|
+
"Edit": "Edit",
|
|
31
|
+
"Delete": "Delete",
|
|
32
|
+
"Delete this price?": "Delete this price?",
|
|
33
|
+
"Add price": "Add price",
|
|
34
|
+
"Edit price": "Edit price",
|
|
35
|
+
"Effective from": "Effective from",
|
|
36
|
+
"Effective to": "Effective to",
|
|
37
|
+
"Notes": "Notes",
|
|
38
|
+
"Saved successfully": "Saved successfully",
|
|
39
|
+
"Deleted successfully": "Deleted successfully",
|
|
40
|
+
"User": "User",
|
|
41
|
+
"Period": "Period",
|
|
42
|
+
"Request limit": "Request limit",
|
|
43
|
+
"Token limit": "Token limit",
|
|
44
|
+
"Cost limit": "Cost limit",
|
|
45
|
+
"Timezone": "Timezone",
|
|
46
|
+
"Unlimited": "Unlimited",
|
|
47
|
+
"Add quota": "Add quota",
|
|
48
|
+
"Edit quota": "Edit quota",
|
|
49
|
+
"Delete this quota?": "Delete this quota?",
|
|
50
|
+
"Daily": "Daily",
|
|
51
|
+
"Monthly": "Monthly",
|
|
52
|
+
"Reject unpriced models": "Reject unpriced models",
|
|
53
|
+
"Missing usage behavior": "Missing usage behavior",
|
|
54
|
+
"Use reserved estimate": "Use reserved estimate",
|
|
55
|
+
"Allow without token charge": "Allow without token charge",
|
|
56
|
+
"Started at": "Started at",
|
|
57
|
+
"Requested model": "Requested model",
|
|
58
|
+
"Resolved service": "Resolved service",
|
|
59
|
+
"Resolved model": "Resolved model",
|
|
60
|
+
"Input tokens": "Input tokens",
|
|
61
|
+
"Output tokens": "Output tokens",
|
|
62
|
+
"Total tokens": "Total tokens",
|
|
63
|
+
"Cost": "Cost",
|
|
64
|
+
"Cost status": "Cost status",
|
|
65
|
+
"Request ID": "Request ID",
|
|
66
|
+
"Failed to load models": "Failed to load models",
|
|
67
|
+
"Select a model": "Select a model",
|
|
68
|
+
"Select an AI Employee": "Select an AI Employee",
|
|
69
|
+
"Usage guide": "Usage guide",
|
|
70
|
+
"OpenAI-compatible endpoint": "OpenAI-compatible endpoint",
|
|
71
|
+
"Base URL": "Base URL",
|
|
72
|
+
"Use a NocoBase API key as the Bearer token.": "Use a NocoBase API key as the Bearer token.",
|
|
73
|
+
"List available models": "List available models",
|
|
74
|
+
"Send a chat completion": "Send a chat completion",
|
|
75
|
+
"Usage filters": "Usage filters",
|
|
76
|
+
"Time range": "Time range",
|
|
77
|
+
"User ID": "User ID",
|
|
78
|
+
"Succeeded": "Succeeded",
|
|
79
|
+
"Failed": "Failed",
|
|
80
|
+
"Started": "Started",
|
|
81
|
+
"Apply filters": "Apply filters",
|
|
82
|
+
"Reset": "Reset",
|
|
83
|
+
"Requests": "Requests",
|
|
84
|
+
"Total cost": "Total cost",
|
|
85
|
+
"Usage records": "Usage records",
|
|
86
|
+
"Model metadata": "Model metadata",
|
|
87
|
+
"Add override": "Add override",
|
|
88
|
+
"Edit override": "Edit override",
|
|
89
|
+
"Delete this override?": "Delete this override?",
|
|
90
|
+
"Context window": "Context window",
|
|
91
|
+
"Max completion tokens": "Max completion tokens",
|
|
92
|
+
"Owned by": "Owned by",
|
|
93
|
+
"Display name": "Display name",
|
|
94
|
+
"Description": "Description",
|
|
95
|
+
"Leave empty to not override": "Leave empty to not override",
|
|
96
|
+
"Total input + output token capacity reported to clients.": "Total input + output token capacity reported to clients.",
|
|
97
|
+
"Maximum output tokens reported to clients.": "Maximum output tokens reported to clients.",
|
|
98
|
+
"AI API": "AI API",
|
|
99
|
+
"Allow this role to use the AI API": "Allow this role to use the AI API",
|
|
100
|
+
"Allow all AI Employees": "Allow all AI Employees",
|
|
101
|
+
"Select which AI Employees this role may use:": "Select which AI Employees this role may use:",
|
|
102
|
+
"Select allowed AI Employees": "Select allowed AI Employees",
|
|
103
|
+
"Max request body size (MB)": "Max request body size (MB)",
|
|
104
|
+
"Raise this to accept inline base64 images. Base64 adds about 33% to the original file size.": "Raise this to accept inline base64 images. Base64 adds about 33% to the original file size."
|
|
105
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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ử lý 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 và không tính token",
|
|
56
|
+
"Started at": "Bắt đầu lúc",
|
|
57
|
+
"Requested model": "Model được yêu cầu",
|
|
58
|
+
"Resolved service": "Service đã resolve",
|
|
59
|
+
"Resolved model": "Model đã resolve",
|
|
60
|
+
"Input tokens": "Input token",
|
|
61
|
+
"Output tokens": "Output token",
|
|
62
|
+
"Total tokens": "Tổng token",
|
|
63
|
+
"Cost": "Chi phí",
|
|
64
|
+
"Cost status": "Trạng thái chi phí",
|
|
65
|
+
"Request ID": "Request ID",
|
|
66
|
+
"Failed to load models": "Không thể tải danh sách model",
|
|
67
|
+
"Select a model": "Chọn model",
|
|
68
|
+
"Select an AI Employee": "Chọn AI Employee",
|
|
69
|
+
"Usage guide": "Hướng dẫn sử dụng",
|
|
70
|
+
"OpenAI-compatible endpoint": "Endpoint tương thích OpenAI",
|
|
71
|
+
"Base URL": "Base URL",
|
|
72
|
+
"Use a NocoBase API key as the Bearer token.": "Sử dụng NocoBase API key làm Bearer token.",
|
|
73
|
+
"List available models": "Liệt kê model khả dụng",
|
|
74
|
+
"Send a chat completion": "Gửi yêu cầu chat completion",
|
|
75
|
+
"Usage filters": "Bộ lọc usage",
|
|
76
|
+
"Time range": "Khoảng thời gian",
|
|
77
|
+
"User ID": "User ID",
|
|
78
|
+
"Succeeded": "Thành công",
|
|
79
|
+
"Failed": "Thất bại",
|
|
80
|
+
"Started": "Đã bắt đầu",
|
|
81
|
+
"Apply filters": "Áp dụng bộ lọc",
|
|
82
|
+
"Reset": "Đặt lại",
|
|
83
|
+
"Requests": "Số request",
|
|
84
|
+
"Total cost": "Tổng chi phí",
|
|
85
|
+
"Usage records": "Chi tiết usage",
|
|
86
|
+
"Model metadata": "Metadata model",
|
|
87
|
+
"Add override": "Thêm override",
|
|
88
|
+
"Edit override": "Sửa override",
|
|
89
|
+
"Delete this override?": "Xóa override này?",
|
|
90
|
+
"Context window": "Context window",
|
|
91
|
+
"Max completion tokens": "Max completion tokens",
|
|
92
|
+
"Owned by": "Nhà cung cấp",
|
|
93
|
+
"Display name": "Tên hiển thị",
|
|
94
|
+
"Description": "Mô tả",
|
|
95
|
+
"Leave empty to not override": "Để trống nếu không override",
|
|
96
|
+
"Total input + output token capacity reported to clients.": "Tổng dung lượng token (input + output) trả về cho client.",
|
|
97
|
+
"Maximum output tokens reported to clients.": "Số token output tối đa trả về cho client.",
|
|
98
|
+
"AI API": "AI API",
|
|
99
|
+
"Allow this role to use the AI API": "Cho phép vai trò này sử dụng AI API",
|
|
100
|
+
"Allow all AI Employees": "Cho phép tất cả AI Employee",
|
|
101
|
+
"Select which AI Employees this role may use:": "Chọn AI Employee mà vai trò này được dùng:",
|
|
102
|
+
"Select allowed AI Employees": "Chọn AI Employee được phép",
|
|
103
|
+
"Max request body size (MB)": "Giới hạn kích thước request body (MB)",
|
|
104
|
+
"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."
|
|
105
|
+
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,10 +1,105 @@
|
|
|
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
|
-
|
|
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
|
+
"Started at": "开始时间",
|
|
57
|
+
"Requested model": "请求模型",
|
|
58
|
+
"Resolved service": "解析后的服务",
|
|
59
|
+
"Resolved model": "解析后的模型",
|
|
60
|
+
"Input tokens": "输入令牌",
|
|
61
|
+
"Output tokens": "输出令牌",
|
|
62
|
+
"Total tokens": "总令牌",
|
|
63
|
+
"Cost": "费用",
|
|
64
|
+
"Cost status": "费用状态",
|
|
65
|
+
"Request ID": "请求 ID",
|
|
66
|
+
"Failed to load models": "加载模型失败",
|
|
67
|
+
"Select a model": "选择模型",
|
|
68
|
+
"Select an AI Employee": "选择 AI 员工",
|
|
69
|
+
"Usage guide": "使用指南",
|
|
70
|
+
"OpenAI-compatible endpoint": "OpenAI 兼容端点",
|
|
71
|
+
"Base URL": "基础 URL",
|
|
72
|
+
"Use a NocoBase API key as the Bearer token.": "使用 NocoBase API 密钥作为 Bearer Token。",
|
|
73
|
+
"List available models": "列出可用模型",
|
|
74
|
+
"Send a chat completion": "发送聊天补全请求",
|
|
75
|
+
"Usage filters": "用量筛选",
|
|
76
|
+
"Time range": "时间范围",
|
|
77
|
+
"User ID": "用户 ID",
|
|
78
|
+
"Succeeded": "成功",
|
|
79
|
+
"Failed": "失败",
|
|
80
|
+
"Started": "已开始",
|
|
81
|
+
"Apply filters": "应用筛选",
|
|
82
|
+
"Reset": "重置",
|
|
83
|
+
"Requests": "请求数",
|
|
84
|
+
"Total cost": "总费用",
|
|
85
|
+
"Usage records": "用量记录",
|
|
86
|
+
"Model metadata": "模型元数据",
|
|
87
|
+
"Add override": "添加覆盖",
|
|
88
|
+
"Edit override": "编辑覆盖",
|
|
89
|
+
"Delete this override?": "确认删除此覆盖?",
|
|
90
|
+
"Context window": "上下文窗口",
|
|
91
|
+
"Max completion tokens": "最大输出 token 数",
|
|
92
|
+
"Owned by": "所属方",
|
|
93
|
+
"Display name": "显示名称",
|
|
94
|
+
"Description": "描述",
|
|
95
|
+
"Leave empty to not override": "留空则不覆盖",
|
|
96
|
+
"Total input + output token capacity reported to clients.": "返回给客户端的输入+输出 token 总容量。",
|
|
97
|
+
"Maximum output tokens reported to clients.": "返回给客户端的最大输出 token 数。",
|
|
98
|
+
"AI API": "AI API",
|
|
99
|
+
"Allow this role to use the AI API": "允许此角色使用 AI API",
|
|
100
|
+
"Allow all AI Employees": "允许所有 AI 员工",
|
|
101
|
+
"Select which AI Employees this role may use:": "选择此角色可使用的 AI 员工:",
|
|
102
|
+
"Select allowed AI Employees": "选择允许的 AI 员工",
|
|
103
|
+
"Max request body size (MB)": "请求体大小上限(MB)",
|
|
104
|
+
"Raise this to accept inline base64 images. Base64 adds about 33% to the original file size.": "调高此值以接收内联 base64 图片。base64 编码会使体积增加约 33%。"
|
|
105
|
+
}
|