Update swagger api docs

This commit is contained in:
2025-11-14 23:43:14 +01:00
parent 4f8f4b96cd
commit 6ed99fccf9
3 changed files with 122 additions and 122 deletions

View File

@@ -6,13 +6,13 @@ definitions:
$ref: '#/definitions/config.AuthConfig'
backends:
$ref: '#/definitions/config.BackendConfig'
buildTime:
build_time:
type: string
commitHash:
commit_hash:
type: string
instances:
$ref: '#/definitions/config.InstancesConfig'
localNode:
local_node:
type: string
nodes:
additionalProperties:
@@ -25,26 +25,26 @@ definitions:
type: object
config.AuthConfig:
properties:
inferenceKeys:
inference_keys:
description: List of keys for OpenAI compatible inference endpoints
items:
type: string
type: array
managementKeys:
management_keys:
description: List of keys for management endpoints
items:
type: string
type: array
requireInferenceAuth:
require_inference_auth:
description: Require authentication for OpenAI compatible inference endpoints
type: boolean
requireManagementAuth:
require_management_auth:
description: Require authentication for management endpoints
type: boolean
type: object
config.BackendConfig:
properties:
llamaCpp:
llama-cpp:
$ref: '#/definitions/config.BackendSettings'
mlx:
$ref: '#/definitions/config.BackendSettings'
@@ -65,7 +65,7 @@ definitions:
additionalProperties:
type: string
type: object
responseHeaders:
response_headers:
additionalProperties:
type: string
type: object
@@ -87,49 +87,49 @@ definitions:
type: object
config.InstancesConfig:
properties:
autoCreateDirs:
auto_create_dirs:
description: Automatically create the data directory if it doesn't exist
type: boolean
dataDir:
configs_dir:
description: Instance config directory override
type: string
data_dir:
description: Directory where all llamactl data will be stored (instances.json,
logs, etc.)
type: string
defaultAutoRestart:
default_auto_restart:
description: Default auto-restart setting for new instances
type: boolean
defaultMaxRestarts:
default_max_restarts:
description: Default max restarts for new instances
type: integer
defaultOnDemandStart:
default_on_demand_start:
description: Default on-demand start setting for new instances
type: boolean
defaultRestartDelay:
default_restart_delay:
description: Default restart delay for new instances (in seconds)
type: integer
enableLRUEviction:
enable_lru_eviction:
description: Enable LRU eviction for instance logs
type: boolean
instancesDir:
description: Instance config directory override
type: string
logsDir:
logs_dir:
description: Logs directory override
type: string
maxInstances:
max_instances:
description: Maximum number of instances that can be created
type: integer
maxRunningInstances:
max_running_instances:
description: Maximum number of instances that can be running at the same time
type: integer
onDemandStartTimeout:
on_demand_start_timeout:
description: How long to wait for an instance to start on demand (in seconds)
type: integer
portRange:
port_range:
description: Port range for instances (e.g., 8000,9000)
items:
type: integer
type: array
timeoutCheckInterval:
timeout_check_interval:
description: Interval for checking instance timeouts (in minutes)
type: integer
type: object
@@ -137,23 +137,23 @@ definitions:
properties:
address:
type: string
apikey:
api_key:
type: string
type: object
config.ServerConfig:
properties:
allowedHeaders:
allowed_headers:
description: Allowed headers for CORS (e.g., "Accept", "Authorization", "Content-Type",
"X-CSRF-Token")
items:
type: string
type: array
allowedOrigins:
allowed_origins:
description: Allowed origins for CORS (e.g., "http://localhost:3000")
items:
type: string
type: array
enableSwagger:
enable_swagger:
description: Enable Swagger UI for API documentation
type: boolean
host:
@@ -162,7 +162,7 @@ definitions:
port:
description: Server port to bind to
type: integer
responseHeaders:
response_headers:
additionalProperties:
type: string
description: Response headers to send with responses