@jeffusion/bungee-types 5.16.0 → 5.18.0
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.
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -143,7 +143,9 @@ export interface LoadBalancingConfig {
|
|
|
143
143
|
/** 仅 policy='consistent_hash' 时有意义 */
|
|
144
144
|
hash_policy?: HashPolicyConfig;
|
|
145
145
|
}
|
|
146
|
+
export type LLMProtocol = 'responses' | 'chat_completions' | 'anthropic_messages';
|
|
146
147
|
export interface Service {
|
|
148
|
+
llm_protocol?: LLMProtocol;
|
|
147
149
|
/** Stable identity supplied by the runtime compiler. */
|
|
148
150
|
id?: string;
|
|
149
151
|
name: string;
|
|
@@ -215,6 +217,7 @@ export interface RetryConfig {
|
|
|
215
217
|
per_retry_timeout_ms?: number;
|
|
216
218
|
}
|
|
217
219
|
export interface RouteConfig extends DirectionalModificationRules {
|
|
220
|
+
llm_protocol?: LLMProtocol;
|
|
218
221
|
/** Stable logical route identity, present only in compiled runtime config. */
|
|
219
222
|
id?: string;
|
|
220
223
|
path: string;
|
|
@@ -225,6 +228,10 @@ export interface RouteConfig extends DirectionalModificationRules {
|
|
|
225
228
|
auth?: AuthConfig;
|
|
226
229
|
plugins?: Array<PluginConfig | string>;
|
|
227
230
|
timeouts?: RouteTimeoutsConfig;
|
|
231
|
+
/** Explicitly enable WebSocket upgrades alongside HTTP; omitted means disabled. */
|
|
232
|
+
websocket?: {
|
|
233
|
+
enabled: boolean;
|
|
234
|
+
};
|
|
228
235
|
rate_limit?: RateLimitConfig;
|
|
229
236
|
cors?: CorsConfig;
|
|
230
237
|
response_rules?: ResponseRuleConfig[];
|