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": "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
- "Context overflow behavior": "Context overflow behavior",
57
- "Reject request": "Reject request",
58
- "Truncate oldest conversation turns": "Truncate oldest conversation turns",
59
- "Started at": "Started at",
60
- "Requested model": "Requested model",
61
- "Resolved service": "Resolved service",
62
- "Resolved model": "Resolved model",
63
- "Input tokens": "Input tokens",
64
- "Output tokens": "Output tokens",
65
- "Total tokens": "Total tokens",
66
- "Prompt cache tokens": "Prompt cache tokens",
67
- "Cost": "Cost",
68
- "Cost status": "Cost status",
69
- "Request ID": "Request ID",
70
- "Failed to load models": "Failed to load models",
71
- "Select a model": "Select a model",
72
- "Select an AI Employee": "Select an AI Employee",
73
- "Usage guide": "Usage guide",
74
- "OpenAI-compatible endpoint": "OpenAI-compatible endpoint",
75
- "Base URL": "Base URL",
76
- "Use a NocoBase API key as the Bearer token.": "Use a NocoBase API key as the Bearer token.",
77
- "List available models": "List available models",
78
- "Send a chat completion": "Send a chat completion",
79
- "Usage filters": "Usage filters",
80
- "Time range": "Time range",
81
- "User ID": "User ID",
82
- "Succeeded": "Succeeded",
83
- "Failed": "Failed",
84
- "Started": "Started",
85
- "Apply filters": "Apply filters",
86
- "Reset": "Reset",
87
- "Requests": "Requests",
88
- "Total cost": "Total cost",
89
- "Usage records": "Usage records",
90
- "Model metadata": "Model metadata",
91
- "Add override": "Add override",
92
- "Edit override": "Edit override",
93
- "Delete this override?": "Delete this override?",
94
- "Context window": "Context window",
95
- "Max completion tokens": "Max completion tokens",
96
- "Owned by": "Owned by",
97
- "Display name": "Display name",
98
- "Description": "Description",
99
- "Leave empty to not override": "Leave empty to not override",
100
- "Total input + output token capacity reported to clients.": "Total input + output token capacity reported to clients.",
101
- "Maximum output tokens reported to clients.": "Maximum output tokens reported to clients.",
102
- "Initial system prompt": "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.": "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.",
104
- "AI API": "AI API",
105
- "Allow this role to use the AI API": "Allow this role to use the AI API",
106
- "Allow all AI Employees": "Allow all AI Employees",
107
- "Select which AI Employees this role may use:": "Select which AI Employees this role may use:",
108
- "Select allowed AI Employees": "Select allowed AI Employees",
109
- "Max request body size (MB)": "Max request body size (MB)",
110
- "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.",
111
- "Usage groups": "Usage groups",
112
- "Add group": "Add group",
113
- "Edit group": "Edit group",
114
- "Delete this group?": "Delete this group?",
115
- "Mode": "Mode",
116
- "Share": "Share",
117
- "Per user": "Per user",
118
- "Rate limit per minute": "Rate limit per minute",
119
- "Members": "Members",
120
- "Add member": "Add member",
121
- "Member added": "Member added",
122
- "Member removed": "Member removed",
123
- "Remove member?": "Remove member?",
124
- "Remove": "Remove",
125
- "Search group by user": "Search group by user",
126
- "User belongs to": "User belongs to",
127
- "User not found": "User not found",
128
- "Default": "Default",
129
- "Allowed LLM services": "Allowed LLM services",
130
- "Allow all models": "Allow all models",
131
- "Allowed models": "Allowed models",
132
- "Model access": "Model access",
133
- "All models": "All models",
134
- "All services": "All services",
135
- "No models": "No models",
136
- "Leave empty to allow every service enabled in the general configuration.": "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.": "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 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
+ "Cache input price / 1M": "Cache input price / 1M",
24
+ "Output price / 1M": "Output price / 1M",
25
+ "Fixed request cost": "Fixed request cost",
26
+ "Currency": "Currency",
27
+ "Status": "Status",
28
+ "Enabled": "Enabled",
29
+ "Disabled": "Disabled",
30
+ "Actions": "Actions",
31
+ "Edit": "Edit",
32
+ "Delete": "Delete",
33
+ "Delete this price?": "Delete this price?",
34
+ "Add price": "Add price",
35
+ "Edit price": "Edit price",
36
+ "Effective from": "Effective from",
37
+ "Effective to": "Effective to",
38
+ "Notes": "Notes",
39
+ "Saved successfully": "Saved successfully",
40
+ "Deleted successfully": "Deleted successfully",
41
+ "User": "User",
42
+ "Period": "Period",
43
+ "Request limit": "Request limit",
44
+ "Token limit": "Token limit",
45
+ "Cost limit": "Cost limit",
46
+ "Timezone": "Timezone",
47
+ "Unlimited": "Unlimited",
48
+ "Add quota": "Add quota",
49
+ "Edit quota": "Edit quota",
50
+ "Delete this quota?": "Delete this quota?",
51
+ "Daily": "Daily",
52
+ "Monthly": "Monthly",
53
+ "Reject unpriced models": "Reject unpriced models",
54
+ "Missing usage behavior": "Missing usage behavior",
55
+ "Use reserved estimate": "Use reserved estimate",
56
+ "Allow without token charge": "Allow without token charge",
57
+ "Context overflow behavior": "Context overflow behavior",
58
+ "Reject request": "Reject request",
59
+ "Truncate oldest conversation turns": "Truncate oldest conversation turns",
60
+ "Started at": "Started at",
61
+ "Requested model": "Requested model",
62
+ "Resolved service": "Resolved service",
63
+ "Resolved model": "Resolved model",
64
+ "Input tokens": "Input tokens",
65
+ "Output tokens": "Output tokens",
66
+ "Total tokens": "Total tokens",
67
+ "Prompt cache tokens": "Prompt cache tokens",
68
+ "Cost": "Cost",
69
+ "Cost status": "Cost status",
70
+ "Request ID": "Request ID",
71
+ "Failed to load models": "Failed to load models",
72
+ "Select a model": "Select a model",
73
+ "Select an AI Employee": "Select an AI Employee",
74
+ "Usage guide": "Usage guide",
75
+ "OpenAI-compatible endpoint": "OpenAI-compatible endpoint",
76
+ "Base URL": "Base URL",
77
+ "Use a NocoBase API key as the Bearer token.": "Use a NocoBase API key as the Bearer token.",
78
+ "List available models": "List available models",
79
+ "Send a chat completion": "Send a chat completion",
80
+ "Usage filters": "Usage filters",
81
+ "Time range": "Time range",
82
+ "User ID": "User ID",
83
+ "Succeeded": "Succeeded",
84
+ "Failed": "Failed",
85
+ "Started": "Started",
86
+ "Apply filters": "Apply filters",
87
+ "Reset": "Reset",
88
+ "Requests": "Requests",
89
+ "Total cost": "Total cost",
90
+ "Usage records": "Usage records",
91
+ "Model metadata": "Model metadata",
92
+ "Add override": "Add override",
93
+ "Edit override": "Edit override",
94
+ "Delete this override?": "Delete this override?",
95
+ "Context window": "Context window",
96
+ "Max completion tokens": "Max completion tokens",
97
+ "Owned by": "Owned by",
98
+ "Display name": "Display name",
99
+ "Description": "Description",
100
+ "Leave empty to not override": "Leave empty to not override",
101
+ "Total input + output token capacity reported to clients.": "Total input + output token capacity reported to clients.",
102
+ "Maximum output tokens reported to clients.": "Maximum output tokens reported to clients.",
103
+ "Initial system prompt": "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.": "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.",
105
+ "AI API": "AI API",
106
+ "Allow this role to use the AI API": "Allow this role to use the AI API",
107
+ "Allow all AI Employees": "Allow all AI Employees",
108
+ "Select which AI Employees this role may use:": "Select which AI Employees this role may use:",
109
+ "Select allowed AI Employees": "Select allowed AI Employees",
110
+ "Max request body size (MB)": "Max request body size (MB)",
111
+ "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.",
112
+ "Usage groups": "Usage groups",
113
+ "Add group": "Add group",
114
+ "Edit group": "Edit group",
115
+ "Delete this group?": "Delete this group?",
116
+ "Mode": "Mode",
117
+ "Share": "Share",
118
+ "Per user": "Per user",
119
+ "Rate limit per minute": "Rate limit per minute",
120
+ "Members": "Members",
121
+ "Add member": "Add member",
122
+ "Member added": "Member added",
123
+ "Member removed": "Member removed",
124
+ "Remove member?": "Remove member?",
125
+ "Remove": "Remove",
126
+ "Search group by user": "Search group by user",
127
+ "User belongs to": "User belongs to",
128
+ "User not found": "User not found",
129
+ "Default": "Default",
130
+ "Allowed LLM services": "Allowed LLM services",
131
+ "Allow all models": "Allow all models",
132
+ "Allowed models": "Allowed models",
133
+ "Model access": "Model access",
134
+ "All models": "All models",
135
+ "All services": "All services",
136
+ "No models": "No models",
137
+ "Leave empty to allow every service enabled in the general configuration.": "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.": "Users who do not belong to any other group automatically use this default group — no need to add members."
139
+ }
@@ -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
+ }