К содержимому

CreateLLMAccount ​

Тип: object additionalProperties: false

ПолеОбязательноеТипОписание и ограничения
nameДаstringminLength: 1
maxLength: 255
harnessДаstringenum: ["codex"]
auth_modeДаstringenum: ["account","api_key"]
activeНетbooleandefault: true
credential_storeНетstringminLength: 1
auth_fileНетAuthFile
api_keyНетstringminLength: 1

JSON Schema ​

json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "harness",
    "auth_mode"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "harness": {
      "type": "string",
      "enum": [
        "codex"
      ]
    },
    "auth_mode": {
      "type": "string",
      "enum": [
        "account",
        "api_key"
      ]
    },
    "active": {
      "type": "boolean",
      "default": true
    },
    "credential_store": {
      "type": "string",
      "minLength": 1
    },
    "auth_file": {
      "$ref": "#/components/schemas/AuthFile"
    },
    "api_key": {
      "type": "string",
      "minLength": 1,
      "writeOnly": true
    }
  },
  "x-go-type": "json.RawMessage"
}

Все схемы · HTTP API