mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 19:01:47 +03:00
feat(gateway): add config toggle for chat completions endpoint
This commit is contained in:
@@ -1155,6 +1155,22 @@ export type GatewayReloadConfig = {
|
||||
debounceMs?: number;
|
||||
};
|
||||
|
||||
export type GatewayHttpChatCompletionsConfig = {
|
||||
/**
|
||||
* If false, the Gateway will not serve `POST /v1/chat/completions`.
|
||||
* Default: true when absent.
|
||||
*/
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
||||
export type GatewayHttpEndpointsConfig = {
|
||||
chatCompletions?: GatewayHttpChatCompletionsConfig;
|
||||
};
|
||||
|
||||
export type GatewayHttpConfig = {
|
||||
endpoints?: GatewayHttpEndpointsConfig;
|
||||
};
|
||||
|
||||
export type GatewayConfig = {
|
||||
/** Single multiplexed port for Gateway WS + HTTP (default: 18789). */
|
||||
port?: number;
|
||||
@@ -1173,6 +1189,7 @@ export type GatewayConfig = {
|
||||
tailscale?: GatewayTailscaleConfig;
|
||||
remote?: GatewayRemoteConfig;
|
||||
reload?: GatewayReloadConfig;
|
||||
http?: GatewayHttpConfig;
|
||||
};
|
||||
|
||||
export type SkillConfig = {
|
||||
|
||||
Reference in New Issue
Block a user