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": { "host": {
"type": "string" "type": "string"
}, },
"idle_timeout": {
"description": "Idle timeout",
"type": "integer"
},
"ignore_eos": { "ignore_eos": {
"type": "boolean" "type": "boolean"
}, },
@@ -1018,6 +1022,10 @@ const docTemplate = `{
"numa": { "numa": {
"type": "string" "type": "string"
}, },
"on_demand_start": {
"description": "On demand start",
"type": "boolean"
},
"override_kv": { "override_kv": {
"type": "array", "type": "array",
"items": { "items": {
@@ -1078,8 +1086,7 @@ const docTemplate = `{
"reranking": { "reranking": {
"type": "boolean" "type": "boolean"
}, },
"restart_delay_seconds": { "restart_delay": {
"description": "RestartDelay duration in seconds",
"type": "integer" "type": "integer"
}, },
"rope_freq_base": { "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": { "instance.Process": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -1204,9 +1224,13 @@ const docTemplate = `{
"name": { "name": {
"type": "string" "type": "string"
}, },
"running": { "status": {
"description": "Status", "description": "Status",
"type": "boolean" "allOf": [
{
"$ref": "#/definitions/instance.InstanceStatus"
}
]
} }
} }
}, },

View File

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

View File

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