feat(providers): add provider transfer limits

This commit is contained in:
elky
2026-07-26 15:06:56 +08:00
parent 2ef7ac79bc
commit 10d369f59c
36 changed files with 1764 additions and 119 deletions
+2
View File
@@ -112,6 +112,8 @@ describe('i18n infrastructure', () => {
it('translates common legacy phrases without adding new message entry points', () => {
expect(translateLegacyText('请求记录清理策略', 'en-US')).toBe('Request log cleanup policy')
expect(translateLegacyText('最大转移次数', 'en-US')).toBe('Max transfers')
expect(translateLegacyText('最大转移超时', 'en-US')).toBe('Max transfer timeout')
expect(translateLegacyText(' 发布于 2026-01-01 ', 'en-US')).toBe(' Published at 2026-01-01 ')
expect(translateLegacyText('git clone https://github.com/fawney19/Aether.git', 'en-US')).toBe('git clone https://github.com/fawney19/Aether.git')
})
+2
View File
@@ -1410,6 +1410,8 @@ const legacyExactEnglishMessages: Record<string, string> = {
'计费类型': 'Billing type',
'最大重试次数': 'Max retries',
'默认 2': 'Default 2',
'最大转移次数': 'Max transfers',
'最大转移超时': 'Max transfer timeout',
'流式首字节超时': 'Streaming first-byte timeout',
'非流式请求超时': 'Non-streaming request timeout',
'(秒)': '(seconds)',