feat(channels): 增强负载均衡和重试逻辑
This commit is contained in:
1 parent
8deda988e4
commit
954e1b539f
8 files changed
+317
-130
No files matched your search
@@ -190,8 +190,8 @@ export class ChannelUpsertEndpoint extends OpenAPIRoute {
|
||||
weight: z.number().int().min(0).max(5).optional().describe('Priority weight for channel routing'),
|
||||
api_key: z.string().optional().describe('Deprecated single API key'),
|
||||
api_keys: z.array(z.string()).optional().describe('API keys, one request will pick one randomly'),
|
||||
auto_retry: z.boolean().optional().describe('Automatically retry the same API key'),
|
||||
auto_rotate: z.boolean().optional().describe('Automatically rotate to other API keys on retryable failures'),
|
||||
auto_retry: z.boolean().optional().describe('Automatically retry the channel up to 3 times on retryable failures'),
|
||||
auto_rotate: z.boolean().optional().describe('When retrying, randomly rotate to other API keys in the same channel'),
|
||||
models: z.array(ChannelModelSchema).optional().describe('External model name to upstream model ID mappings'),
|
||||
supported_models: z.array(z.string()).optional().describe('Deprecated supported request model list'),
|
||||
deployment_mapper: z.record(z.string(), z.string()).optional().describe('Deprecated model deployment mapping'),
|
||||
|
||||
Reference in new issue
Block a user