mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-12-06 16:03:04 +00:00
fix(channels): preserve advanced custom body passthrough settings (#7971)
This commit is contained in:
1 parent
e9d4d6353c
commit
7fb6e57a5f
12 files changed
+192
-40
No files matched your search
@@ -1232,6 +1232,102 @@ test('quick options and detailed settings share changes across tabs and save the
|
||||
})
|
||||
})
|
||||
|
||||
test.each(['stacked', 'inline'])(
|
||||
'advanced custom body passthrough saves and reloads from %s quick options and can be disabled in detailed settings',
|
||||
async (layout) => {
|
||||
if (layout === 'inline') useWideScreen()
|
||||
const settings = {
|
||||
advanced_custom: {
|
||||
advanced_routes: [
|
||||
{
|
||||
incoming_path: '/v1/chat/completions',
|
||||
upstream_path: '/v1/chat/completions',
|
||||
converter: 'none',
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
editingChannel = {
|
||||
...editingChannel,
|
||||
type: 58,
|
||||
settings: JSON.stringify(settings),
|
||||
header_override: '{"*":true}',
|
||||
}
|
||||
const put = vi
|
||||
.spyOn(api, 'put')
|
||||
.mockImplementation(async (_url, payload) => {
|
||||
editingChannel = { ...editingChannel, ...(payload as Partial<Channel>) }
|
||||
return { data: { success: true } }
|
||||
})
|
||||
const user = userEvent.setup()
|
||||
render(<ConfigurationHarness currentRow={editingChannel} />)
|
||||
await screen.findByDisplayValue('Existing channel')
|
||||
const quick = within(screen.getByRole('group', { name: 'Quick options' }))
|
||||
const toggle = quick.getByRole('switch', { name: 'Pass Through Body' })
|
||||
expect(toggle).not.toBeChecked()
|
||||
expect(
|
||||
quick.getByRole('switch', { name: 'Pass Through Request Headers' })
|
||||
).toBeChecked()
|
||||
await user.click(toggle)
|
||||
const warning = await screen.findByRole('alertdialog', {
|
||||
name: 'Enable request body passthrough?',
|
||||
})
|
||||
expect(warning).toHaveTextContent(
|
||||
'Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.'
|
||||
)
|
||||
await user.click(within(warning).getByRole('button', { name: 'Cancel' }))
|
||||
await waitFor(() =>
|
||||
expect(screen.queryByRole('alertdialog')).not.toBeInTheDocument()
|
||||
)
|
||||
expect(toggle).not.toBeChecked()
|
||||
await user.click(toggle)
|
||||
await user.click(
|
||||
await screen.findByRole('button', { name: 'Enable passthrough' })
|
||||
)
|
||||
expect(toggle).toBeChecked()
|
||||
await user.click(screen.getByRole('button', { name: 'Update Channel' }))
|
||||
await waitFor(() => expect(put).toHaveBeenCalledTimes(1))
|
||||
expect(JSON.parse(editingChannel.setting ?? '{}')).toMatchObject({
|
||||
pass_through_body_enabled: true,
|
||||
})
|
||||
expect(JSON.parse(editingChannel.settings ?? '{}').advanced_custom).toEqual(
|
||||
settings.advanced_custom
|
||||
)
|
||||
expect(JSON.parse(editingChannel.header_override ?? '{}')).toEqual({
|
||||
'*': true,
|
||||
})
|
||||
|
||||
await waitFor(() =>
|
||||
expect(
|
||||
screen.queryByRole('button', { name: 'Update Channel' })
|
||||
).not.toBeInTheDocument()
|
||||
)
|
||||
await user.click(screen.getByRole('button', { name: 'Open channel' }))
|
||||
await screen.findByDisplayValue('Existing channel')
|
||||
expect(
|
||||
within(screen.getByRole('group', { name: 'Quick options' })).getByRole(
|
||||
'switch',
|
||||
{ name: 'Pass Through Body' }
|
||||
)
|
||||
).toBeChecked()
|
||||
await user.click(screen.getByRole('tab', { name: /Request & Response/ }))
|
||||
const detailed = within(
|
||||
screen.getByRole('group', { name: 'Request processing' })
|
||||
).getByRole('switch', { name: 'Pass Through Body' })
|
||||
expect(detailed).toBeChecked()
|
||||
await user.click(detailed)
|
||||
expect(screen.queryByRole('alertdialog')).not.toBeInTheDocument()
|
||||
await user.click(screen.getByRole('button', { name: 'Update Channel' }))
|
||||
await waitFor(() => expect(put).toHaveBeenCalledTimes(2))
|
||||
expect(JSON.parse(editingChannel.setting ?? '{}')).toMatchObject({
|
||||
pass_through_body_enabled: false,
|
||||
})
|
||||
expect(JSON.parse(editingChannel.settings ?? '{}').advanced_custom).toEqual(
|
||||
settings.advanced_custom
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
test('quick options show only applicable shortcuts when the provider changes', async () => {
|
||||
const user = userEvent.setup()
|
||||
render(<ConfigurationHarness />)
|
||||
|
||||
@@ -40,8 +40,12 @@ import {
|
||||
import { CHANNEL_TYPE_ADVANCED_CUSTOM } from '../../lib/advanced-custom'
|
||||
import {
|
||||
CHANNEL_FORM_DEFAULT_VALUES,
|
||||
transformChannelToFormDefaults,
|
||||
transformFormDataToCreatePayload,
|
||||
transformFormDataToUpdatePayload,
|
||||
type ChannelFormValues,
|
||||
} from '../../lib/channel-form'
|
||||
import { channelSchema } from '../../types'
|
||||
import { ChannelQuickOptions } from '../channel-quick-options'
|
||||
import type { PassthroughKind } from '../dialogs/passthrough-warning-dialog'
|
||||
|
||||
@@ -220,6 +224,43 @@ describe('header passthrough quick option', () => {
|
||||
})
|
||||
|
||||
describe('body passthrough quick option', () => {
|
||||
test.each([
|
||||
{ channelType: 1, enabled: true },
|
||||
{ channelType: CHANNEL_TYPE_ADVANCED_CUSTOM, enabled: true },
|
||||
{ channelType: CHANNEL_TYPE_ADVANCED_CUSTOM, enabled: false },
|
||||
{ channelType: CHANNEL_TYPE_ADVANCED_CUSTOM, enabled: undefined },
|
||||
])(
|
||||
'channel type $channelType preserves body passthrough $enabled through create, update and reload',
|
||||
({ channelType, enabled }) => {
|
||||
const channel = channelSchema.parse({
|
||||
id: 42,
|
||||
name: 'Body passthrough channel',
|
||||
type: channelType,
|
||||
key: '',
|
||||
status: 1,
|
||||
created_time: 0,
|
||||
test_time: 0,
|
||||
response_time: 0,
|
||||
balance_updated_time: 0,
|
||||
setting: JSON.stringify({ pass_through_body_enabled: enabled }),
|
||||
})
|
||||
const values = transformChannelToFormDefaults(channel)
|
||||
const payloads = [
|
||||
transformFormDataToCreatePayload(values).channel,
|
||||
transformFormDataToUpdatePayload(values, channel.id),
|
||||
]
|
||||
for (const payload of payloads) {
|
||||
expect(
|
||||
JSON.parse(payload.setting ?? '{}').pass_through_body_enabled
|
||||
).toBe(enabled === true)
|
||||
expect(
|
||||
transformChannelToFormDefaults({ ...channel, ...payload })
|
||||
.pass_through_body_enabled
|
||||
).toBe(enabled === true)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
test('enabling asks for confirmation and disabling does not', async () => {
|
||||
const user = userEvent.setup()
|
||||
const confirm = vi.fn(() => Promise.resolve(true))
|
||||
|
||||
@@ -21,9 +21,12 @@ import { useTranslation } from 'react-i18next'
|
||||
|
||||
import { ConfirmDialog } from '@/components/confirm-dialog'
|
||||
|
||||
import { CHANNEL_TYPE_ADVANCED_CUSTOM } from '../../lib/advanced-custom'
|
||||
|
||||
export type PassthroughKind = 'body' | 'headers'
|
||||
|
||||
type PassthroughWarningDialogProps = {
|
||||
channelType: number
|
||||
open: boolean
|
||||
/** Which passthrough option is about to be enabled. */
|
||||
kind: PassthroughKind | null
|
||||
@@ -93,6 +96,13 @@ export function PassthroughWarningDialog(props: PassthroughWarningDialogProps) {
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
{isBody && props.channelType === CHANNEL_TYPE_ADVANCED_CUSTOM && (
|
||||
<p>
|
||||
{t(
|
||||
'Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.'
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
<p className='text-foreground font-medium'>
|
||||
{t('Make sure you understand these effects before enabling.')}
|
||||
</p>
|
||||
|
||||
@@ -4758,8 +4758,7 @@ export function ChannelMutateDrawer({
|
||||
{formatFields}
|
||||
{ollamaOpenAIChatFields}
|
||||
{thinkingFields}
|
||||
{currentType !== CHANNEL_TYPE_ADVANCED_CUSTOM &&
|
||||
passthroughFields}
|
||||
{passthroughFields}
|
||||
{systemPromptFields}
|
||||
{systemPromptOverrideFields}
|
||||
</fieldset>
|
||||
@@ -5153,6 +5152,7 @@ export function ChannelMutateDrawer({
|
||||
onConfirm={() => handleStatusCodeRiskAction(true)}
|
||||
/>
|
||||
<PassthroughWarningDialog
|
||||
channelType={currentType}
|
||||
open={passthroughWarningKind !== null}
|
||||
kind={passthroughWarningKind}
|
||||
onOpenChange={(v) => {
|
||||
|
||||
@@ -670,9 +670,7 @@ export function buildSettingJSON(formData: ChannelFormValues): string {
|
||||
force_format: formData.force_format || false,
|
||||
thinking_to_content: formData.thinking_to_content || false,
|
||||
proxy: formData.proxy?.trim() || '',
|
||||
pass_through_body_enabled:
|
||||
formData.type !== CHANNEL_TYPE_ADVANCED_CUSTOM &&
|
||||
formData.pass_through_body_enabled === true,
|
||||
pass_through_body_enabled: formData.pass_through_body_enabled === true,
|
||||
responses_websocket_enabled:
|
||||
supportsResponsesWebSocket(formData.type) &&
|
||||
formData.responses_websocket_enabled === true,
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "By requests",
|
||||
"By tokens": "By tokens",
|
||||
"Cache": "Cache",
|
||||
"Cache create (1h) price": "Cache create (1h) price",
|
||||
"Cache create (12h) price": "Cache create (12h) price",
|
||||
"Cache create (1h) price": "Cache create (1h) price",
|
||||
"Cache create price": "Cache create price",
|
||||
"Cache Creation": "Cache Creation",
|
||||
"Cache Creation (1h)": "Cache Creation (1h)",
|
||||
"Cache Creation (12h)": "Cache Creation (12h)",
|
||||
"Cache Creation (5m)": "Cache Creation (5m)",
|
||||
"Cache Creation (1h)": "Cache Creation (1h)",
|
||||
"Cache Creation (30m)": "Cache Creation (30m)",
|
||||
"Cache Creation (5m)": "Cache Creation (5m)",
|
||||
"Cache Directory": "Cache Directory",
|
||||
"Cache Directory Disk Space": "Cache Directory Disk Space",
|
||||
"Cache Directory Info": "Cache Directory Info",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "Cache usage is recorded only after the upgrade; historical data is not backfilled.",
|
||||
"Cache write": "Cache write",
|
||||
"Cache Write": "Cache Write",
|
||||
"Cache Write (1h)": "Cache Write (1h)",
|
||||
"Cache Write (12h)": "Cache Write (12h)",
|
||||
"Cache Write (5m)": "Cache Write (5m)",
|
||||
"Cache Write (1h)": "Cache Write (1h)",
|
||||
"Cache Write (30m)": "Cache Write (30m)",
|
||||
"Cache Write (5m)": "Cache Write (5m)",
|
||||
"Cache write price": "Cache write price",
|
||||
"Cached": "Cached",
|
||||
"Cached input": "Cached input",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "Channel types",
|
||||
"Channel types you can use when binding this plugin.": "Channel types you can use when binding this plugin.",
|
||||
"Channel updated successfully": "Channel updated successfully",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.",
|
||||
"Channel-specific settings (JSON format)": "Channel-specific settings (JSON format)",
|
||||
"Channel:": "Channel:",
|
||||
"channel(s)? This action cannot be undone.": "channel(s)? This action cannot be undone.",
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "Par requêtes",
|
||||
"By tokens": "Par jetons",
|
||||
"Cache": "Cache",
|
||||
"Cache create (1h) price": "Prix de création du cache (1 h)",
|
||||
"Cache create (12h) price": "Prix de création du cache (12 h)",
|
||||
"Cache create (1h) price": "Prix de création du cache (1 h)",
|
||||
"Cache create price": "Prix de création du cache",
|
||||
"Cache Creation": "Création cache",
|
||||
"Cache Creation (1h)": "Création cache (1h)",
|
||||
"Cache Creation (12h)": "Création cache (12h)",
|
||||
"Cache Creation (5m)": "Création cache (5m)",
|
||||
"Cache Creation (1h)": "Création cache (1h)",
|
||||
"Cache Creation (30m)": "Création cache (30m)",
|
||||
"Cache Creation (5m)": "Création cache (5m)",
|
||||
"Cache Directory": "Répertoire de cache",
|
||||
"Cache Directory Disk Space": "Espace disque du répertoire de cache",
|
||||
"Cache Directory Info": "Infos du répertoire de cache",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "L’utilisation du cache est enregistrée uniquement après la mise à niveau ; les données historiques ne sont pas complétées.",
|
||||
"Cache write": "Écriture du cache",
|
||||
"Cache Write": "Écriture du cache",
|
||||
"Cache Write (1h)": "Écriture cache (1h)",
|
||||
"Cache Write (12h)": "Écriture cache (12h)",
|
||||
"Cache Write (5m)": "Écriture cache (5m)",
|
||||
"Cache Write (1h)": "Écriture cache (1h)",
|
||||
"Cache Write (30m)": "Écriture cache (30m)",
|
||||
"Cache Write (5m)": "Écriture cache (5m)",
|
||||
"Cache write price": "Prix d’écriture du cache",
|
||||
"Cached": "Cache",
|
||||
"Cached input": "Entrée mise en cache",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "Types de canaux",
|
||||
"Channel types you can use when binding this plugin.": "Types de canaux utilisables pour associer ce plugin.",
|
||||
"Channel updated successfully": "Canal mis à jour avec succès",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "La transmission directe du corps au niveau du canal s’applique à toutes les routes. Les requêtes vers les routes nécessitant une conversion de format échoueront. Pour l’activer uniquement sur certaines routes, utilisez les interrupteurs de ces routes.",
|
||||
"Channel-specific settings (JSON format)": "Paramètres spécifiques aux canaux (format JSON)",
|
||||
"Channel:": "Canal :",
|
||||
"channel(s)? This action cannot be undone.": "canal(aux) ? Cette action ne peut pas être annulée.",
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "リクエスト数別",
|
||||
"By tokens": "トークン数別",
|
||||
"Cache": "キャッシュ",
|
||||
"Cache create (1h) price": "キャッシュ作成価格 (1時間)",
|
||||
"Cache create (12h) price": "キャッシュ作成価格 (12時間)",
|
||||
"Cache create (1h) price": "キャッシュ作成価格 (1時間)",
|
||||
"Cache create price": "キャッシュ作成価格",
|
||||
"Cache Creation": "キャッシュ作成",
|
||||
"Cache Creation (1h)": "キャッシュ作成 (1h)",
|
||||
"Cache Creation (12h)": "キャッシュ作成 (12h)",
|
||||
"Cache Creation (5m)": "キャッシュ作成 (5m)",
|
||||
"Cache Creation (1h)": "キャッシュ作成 (1h)",
|
||||
"Cache Creation (30m)": "キャッシュ作成 (30m)",
|
||||
"Cache Creation (5m)": "キャッシュ作成 (5m)",
|
||||
"Cache Directory": "キャッシュディレクトリ",
|
||||
"Cache Directory Disk Space": "キャッシュディレクトリのディスク容量",
|
||||
"Cache Directory Info": "キャッシュディレクトリ情報",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "キャッシュ使用量はアップグレード後から記録され、過去のデータは補完されません。",
|
||||
"Cache write": "キャッシュ書き込み",
|
||||
"Cache Write": "キャッシュ書き込み",
|
||||
"Cache Write (1h)": "キャッシュ書込 (1h)",
|
||||
"Cache Write (12h)": "キャッシュ書込 (12h)",
|
||||
"Cache Write (5m)": "キャッシュ書込 (5m)",
|
||||
"Cache Write (1h)": "キャッシュ書込 (1h)",
|
||||
"Cache Write (30m)": "キャッシュ書込 (30m)",
|
||||
"Cache Write (5m)": "キャッシュ書込 (5m)",
|
||||
"Cache write price": "キャッシュ書き込み価格",
|
||||
"Cached": "キャッシュ",
|
||||
"Cached input": "キャッシュ入力",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "チャネルタイプ",
|
||||
"Channel types you can use when binding this plugin.": "このプラグインを紐付ける際に選択できるチャネルの種類です。",
|
||||
"Channel updated successfully": "チャネルが正常に更新されました",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "チャネル単位のリクエストボディのパススルーは、すべてのルートに適用されます。形式変換が必要なルートへのリクエストは失敗します。一部のルートのみで有効にする場合は、ルート単位のスイッチを使用してください。",
|
||||
"Channel-specific settings (JSON format)": "チャネル固有の設定 (JSON 形式)",
|
||||
"Channel:": "チャネル:",
|
||||
"channel(s)? This action cannot be undone.": "チャネルを削除しますか?この操作は元に戻せません。",
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "По запросам",
|
||||
"By tokens": "По токенам",
|
||||
"Cache": "Кэш",
|
||||
"Cache create (1h) price": "Цена создания кэша (1 ч)",
|
||||
"Cache create (12h) price": "Цена создания кэша (12 ч)",
|
||||
"Cache create (1h) price": "Цена создания кэша (1 ч)",
|
||||
"Cache create price": "Цена создания кэша",
|
||||
"Cache Creation": "Создание кэша",
|
||||
"Cache Creation (1h)": "Создание кэша (1h)",
|
||||
"Cache Creation (12h)": "Создание кэша (12h)",
|
||||
"Cache Creation (5m)": "Создание кэша (5m)",
|
||||
"Cache Creation (1h)": "Создание кэша (1h)",
|
||||
"Cache Creation (30m)": "Создание кэша (30m)",
|
||||
"Cache Creation (5m)": "Создание кэша (5m)",
|
||||
"Cache Directory": "Каталог кэша",
|
||||
"Cache Directory Disk Space": "Дисковое пространство каталога кэша",
|
||||
"Cache Directory Info": "Информация о каталоге кэша",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "Использование кэша учитывается только после обновления; исторические данные не заполняются.",
|
||||
"Cache write": "Запись кэша",
|
||||
"Cache Write": "Запись в кэш",
|
||||
"Cache Write (1h)": "Запись кэша (1h)",
|
||||
"Cache Write (12h)": "Запись кэша (12h)",
|
||||
"Cache Write (5m)": "Запись кэша (5m)",
|
||||
"Cache Write (1h)": "Запись кэша (1h)",
|
||||
"Cache Write (30m)": "Запись кэша (30m)",
|
||||
"Cache Write (5m)": "Запись кэша (5m)",
|
||||
"Cache write price": "Цена записи кэша",
|
||||
"Cached": "Кэш",
|
||||
"Cached input": "Кэшированный ввод",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "Типы каналов",
|
||||
"Channel types you can use when binding this plugin.": "Типы каналов, к которым можно привязать этот плагин.",
|
||||
"Channel updated successfully": "Канал успешно обновлён",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "Сквозная передача тела запроса на уровне канала действует для всех маршрутов. Запросы к маршрутам, требующим преобразования формата, будут завершаться ошибкой. Чтобы включить её только для отдельных маршрутов, используйте переключатели этих маршрутов.",
|
||||
"Channel-specific settings (JSON format)": "Настройки, специфичные для канала (формат JSON)",
|
||||
"Channel:": "Канал:",
|
||||
"channel(s)? This action cannot be undone.": "канал(ы)? Это действие нельзя отменить.",
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "Theo số yêu cầu",
|
||||
"By tokens": "Theo số token",
|
||||
"Cache": "Bộ nhớ đệm",
|
||||
"Cache create (1h) price": "Giá tạo cache (1 giờ)",
|
||||
"Cache create (12h) price": "Giá tạo cache (12 giờ)",
|
||||
"Cache create (1h) price": "Giá tạo cache (1 giờ)",
|
||||
"Cache create price": "Giá tạo cache",
|
||||
"Cache Creation": "Tạo cache",
|
||||
"Cache Creation (1h)": "Tạo cache (1h)",
|
||||
"Cache Creation (12h)": "Tạo cache (12h)",
|
||||
"Cache Creation (5m)": "Tạo cache (5m)",
|
||||
"Cache Creation (1h)": "Tạo cache (1h)",
|
||||
"Cache Creation (30m)": "Tạo cache (30m)",
|
||||
"Cache Creation (5m)": "Tạo cache (5m)",
|
||||
"Cache Directory": "Thư mục bộ nhớ đệm",
|
||||
"Cache Directory Disk Space": "Dung lượng đĩa thư mục bộ nhớ đệm",
|
||||
"Cache Directory Info": "Thông tin thư mục bộ nhớ đệm",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "Mức sử dụng bộ nhớ đệm chỉ được ghi nhận sau khi nâng cấp; dữ liệu lịch sử không được bổ sung.",
|
||||
"Cache write": "Ghi cache",
|
||||
"Cache Write": "Ghi bộ nhớ đệm",
|
||||
"Cache Write (1h)": "Ghi cache (1h)",
|
||||
"Cache Write (12h)": "Ghi cache (12h)",
|
||||
"Cache Write (5m)": "Ghi cache (5m)",
|
||||
"Cache Write (1h)": "Ghi cache (1h)",
|
||||
"Cache Write (30m)": "Ghi cache (30m)",
|
||||
"Cache Write (5m)": "Ghi cache (5m)",
|
||||
"Cache write price": "Giá ghi cache",
|
||||
"Cached": "Đã cache",
|
||||
"Cached input": "Đầu vào đã cache",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "Loại kênh",
|
||||
"Channel types you can use when binding this plugin.": "Các loại kênh có thể chọn khi liên kết plugin này.",
|
||||
"Channel updated successfully": "Kênh đã được cập nhật thành công",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "Chuyển tiếp nguyên trạng nội dung yêu cầu ở cấp kênh áp dụng cho tất cả tuyến. Yêu cầu đến các tuyến cần chuyển đổi định dạng sẽ thất bại. Để chỉ bật cho một số tuyến, hãy dùng công tắc ở cấp tuyến.",
|
||||
"Channel-specific settings (JSON format)": "Cài đặt dành riêng cho kênh (định dạng JSON)",
|
||||
"Channel:": "Kênh:",
|
||||
"channel(s)? This action cannot be undone.": "kênh(s)? Hành động này không thể hoàn tác.",
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "按請求數",
|
||||
"By tokens": "按 Token",
|
||||
"Cache": "緩存",
|
||||
"Cache create (1h) price": "1 小時緩存寫入價格",
|
||||
"Cache create (12h) price": "12 小時緩存寫入價格",
|
||||
"Cache create (1h) price": "1 小時緩存寫入價格",
|
||||
"Cache create price": "緩存寫入價格",
|
||||
"Cache Creation": "緩存建立",
|
||||
"Cache Creation (1h)": "緩存建立 (1h)",
|
||||
"Cache Creation (12h)": "緩存建立 (12h)",
|
||||
"Cache Creation (5m)": "緩存建立 (5m)",
|
||||
"Cache Creation (1h)": "緩存建立 (1h)",
|
||||
"Cache Creation (30m)": "緩存建立 (30m)",
|
||||
"Cache Creation (5m)": "緩存建立 (5m)",
|
||||
"Cache Directory": "緩存目錄",
|
||||
"Cache Directory Disk Space": "緩存目錄磁碟空間",
|
||||
"Cache Directory Info": "緩存目錄資訊",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "快取用量僅從升級後開始記錄,歷史資料不回填。",
|
||||
"Cache write": "緩存寫入",
|
||||
"Cache Write": "緩存寫入",
|
||||
"Cache Write (1h)": "緩存寫入 (1h)",
|
||||
"Cache Write (12h)": "緩存寫入 (12h)",
|
||||
"Cache Write (5m)": "緩存寫入 (5m)",
|
||||
"Cache Write (1h)": "緩存寫入 (1h)",
|
||||
"Cache Write (30m)": "緩存寫入 (30m)",
|
||||
"Cache Write (5m)": "緩存寫入 (5m)",
|
||||
"Cache write price": "緩存寫入價格",
|
||||
"Cached": "緩存",
|
||||
"Cached input": "緩存輸入",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "渠道類型",
|
||||
"Channel types you can use when binding this plugin.": "綁定此外掛時可選擇的管道類型。",
|
||||
"Channel updated successfully": "渠道更新成功",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "通道級請求主體透傳會套用至所有路由。需要格式轉換的路由將無法處理請求。如需僅對部分路由啟用透傳,請改用路由級開關。",
|
||||
"Channel-specific settings (JSON format)": "渠道特定設定(JSON 格式)",
|
||||
"Channel:": "渠道:",
|
||||
"channel(s)? This action cannot be undone.": "渠道?此操作無法撤銷。",
|
||||
|
||||
@@ -971,14 +971,14 @@
|
||||
"By requests": "按请求数",
|
||||
"By tokens": "按 Token",
|
||||
"Cache": "缓存",
|
||||
"Cache create (1h) price": "1 小时缓存写入价格",
|
||||
"Cache create (12h) price": "12 小时缓存写入价格",
|
||||
"Cache create (1h) price": "1 小时缓存写入价格",
|
||||
"Cache create price": "缓存写入价格",
|
||||
"Cache Creation": "缓存创建",
|
||||
"Cache Creation (1h)": "缓存创建 (1h)",
|
||||
"Cache Creation (12h)": "缓存创建 (12h)",
|
||||
"Cache Creation (5m)": "缓存创建 (5m)",
|
||||
"Cache Creation (1h)": "缓存创建 (1h)",
|
||||
"Cache Creation (30m)": "缓存创建 (30m)",
|
||||
"Cache Creation (5m)": "缓存创建 (5m)",
|
||||
"Cache Directory": "缓存目录",
|
||||
"Cache Directory Disk Space": "缓存目录磁盘空间",
|
||||
"Cache Directory Info": "缓存目录信息",
|
||||
@@ -992,10 +992,10 @@
|
||||
"Cache usage is recorded only after the upgrade; historical data is not backfilled.": "缓存用量仅从升级后开始记录,历史数据不回填。",
|
||||
"Cache write": "缓存写入",
|
||||
"Cache Write": "缓存写入",
|
||||
"Cache Write (1h)": "缓存写入 (1h)",
|
||||
"Cache Write (12h)": "缓存写入 (12h)",
|
||||
"Cache Write (5m)": "缓存写入 (5m)",
|
||||
"Cache Write (1h)": "缓存写入 (1h)",
|
||||
"Cache Write (30m)": "缓存写入 (30m)",
|
||||
"Cache Write (5m)": "缓存写入 (5m)",
|
||||
"Cache write price": "缓存写入价格",
|
||||
"Cached": "缓存",
|
||||
"Cached input": "缓存输入",
|
||||
@@ -1115,6 +1115,7 @@
|
||||
"Channel types": "渠道类型",
|
||||
"Channel types you can use when binding this plugin.": "绑定此插件时可选择的渠道类型。",
|
||||
"Channel updated successfully": "渠道更新成功",
|
||||
"Channel-level body passthrough applies to all routes. Requests to routes that require format conversion will fail. To enable passthrough for selected routes only, use the route-level switches instead.": "渠道级请求体透传会作用于所有路由。需要格式转换的路由将无法处理请求。如需仅对部分路由开启透传,请改用路由级开关。",
|
||||
"Channel-specific settings (JSON format)": "渠道特定设置(JSON 格式)",
|
||||
"Channel:": "渠道:",
|
||||
"channel(s)? This action cannot be undone.": "渠道?此操作无法撤销。",
|
||||
|
||||
Reference in new issue
Block a user