Update api docs

This commit is contained in:
2025-08-31 16:05:19 +02:00
parent b08f15c5d0
commit 81a6c14bf6
3 changed files with 76 additions and 12 deletions

View File

@@ -884,6 +884,10 @@ const docTemplate = `{
"host": {
"type": "string"
},
"idle_timeout": {
"description": "Idle timeout",
"type": "integer"
},
"ignore_eos": {
"type": "boolean"
},
@@ -1018,6 +1022,10 @@ const docTemplate = `{
"numa": {
"type": "string"
},
"on_demand_start": {
"description": "On demand start",
"type": "boolean"
},
"override_kv": {
"type": "array",
"items": {
@@ -1078,8 +1086,7 @@ const docTemplate = `{
"reranking": {
"type": "boolean"
},
"restart_delay_seconds": {
"description": "RestartDelay duration in seconds",
"restart_delay": {
"type": "integer"
},
"rope_freq_base": {
@@ -1194,6 +1201,19 @@ const docTemplate = `{
}
}
},
"instance.InstanceStatus": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"Stopped",
"Running",
"Failed"
]
},
"instance.Process": {
"type": "object",
"properties": {
@@ -1204,9 +1224,13 @@ const docTemplate = `{
"name": {
"type": "string"
},
"running": {
"status": {
"description": "Status",
"type": "boolean"
"allOf": [
{
"$ref": "#/definitions/instance.InstanceStatus"
}
]
}
}
},

View File

@@ -877,6 +877,10 @@
"host": {
"type": "string"
},
"idle_timeout": {
"description": "Idle timeout",
"type": "integer"
},
"ignore_eos": {
"type": "boolean"
},
@@ -1011,6 +1015,10 @@
"numa": {
"type": "string"
},
"on_demand_start": {
"description": "On demand start",
"type": "boolean"
},
"override_kv": {
"type": "array",
"items": {
@@ -1071,8 +1079,7 @@
"reranking": {
"type": "boolean"
},
"restart_delay_seconds": {
"description": "RestartDelay duration in seconds",
"restart_delay": {
"type": "integer"
},
"rope_freq_base": {
@@ -1187,6 +1194,19 @@
}
}
},
"instance.InstanceStatus": {
"type": "integer",
"enum": [
0,
1,
2
],
"x-enum-varnames": [
"Stopped",
"Running",
"Failed"
]
},
"instance.Process": {
"type": "object",
"properties": {
@@ -1197,9 +1217,13 @@
"name": {
"type": "string"
},
"running": {
"status": {
"description": "Status",
"type": "boolean"
"allOf": [
{
"$ref": "#/definitions/instance.InstanceStatus"
}
]
}
}
},

View File

@@ -136,6 +136,9 @@ definitions:
type: string
host:
type: string
idle_timeout:
description: Idle timeout
type: integer
ignore_eos:
type: boolean
jinja:
@@ -226,6 +229,9 @@ definitions:
type: boolean
numa:
type: string
on_demand_start:
description: On demand start
type: boolean
override_kv:
items:
type: string
@@ -266,8 +272,7 @@ definitions:
type: number
reranking:
type: boolean
restart_delay_seconds:
description: RestartDelay duration in seconds
restart_delay:
type: integer
rope_freq_base:
type: number
@@ -344,6 +349,16 @@ definitions:
yarn_orig_ctx:
type: integer
type: object
instance.InstanceStatus:
enum:
- 0
- 1
- 2
type: integer
x-enum-varnames:
- Stopped
- Running
- Failed
instance.Process:
properties:
created:
@@ -351,9 +366,10 @@ definitions:
type: integer
name:
type: string
running:
status:
allOf:
- $ref: '#/definitions/instance.InstanceStatus'
description: Status
type: boolean
type: object
server.OpenAIInstance:
properties: