feat: implement protocol parity and harden upstream handling (#88)

* feat: implement protocol parity and harden upstream handling

* docs(agents): add lodash-es utility method and named import guideline
This commit is contained in:
vin authored and GitHub committed 2026-02-11 00:42:39 +08:00
1 parent 0f7a629a47
commit 13f10fe32f
23 files changed
+4408 -654

No files matched your search

+4
View File
@@ -10,6 +10,8 @@ export const ProxyConfigSchema = z.object({
port: z.number(), // 监听端口
api_key: z.string(), // API 密钥 (Also used for Admin Mode auth)
auto_start: z.boolean(), // 是否自动启动
backend_canary_enabled: z.boolean().default(true),
custom_mapping: z.record(z.string(), z.string()).default({}),
anthropic_mapping: z.record(z.string(), z.string()), // 映射表
request_timeout: z.number().default(120), // 超时秒数
upstream_proxy: UpstreamProxyConfigSchema,
@@ -49,6 +51,8 @@ export const DEFAULT_APP_CONFIG: AppConfig = {
port: 8045,
api_key: '', // Generated dynamically if default needed
auto_start: false,
backend_canary_enabled: true,
custom_mapping: {},
anthropic_mapping: {},
request_timeout: 120,
upstream_proxy: {