{
  "components": {
    "schemas": {
      "APIKeyCreate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "title": "APIKeyCreate",
        "type": "object"
      },
      "APIKeyCreated": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "last_used_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "masked_key": {
            "title": "Masked Key",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "required": [
          "id",
          "name",
          "masked_key",
          "active",
          "created_at",
          "key"
        ],
        "title": "APIKeyCreated",
        "type": "object"
      },
      "APIKeyPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/APIKeyRead"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data"
        ],
        "title": "APIKeyPage",
        "type": "object"
      },
      "APIKeyRead": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "last_used_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "masked_key": {
            "title": "Masked Key",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "required": [
          "id",
          "name",
          "masked_key",
          "active",
          "created_at"
        ],
        "title": "APIKeyRead",
        "type": "object"
      },
      "AccountView": {
        "properties": {
          "advertising_consent": {
            "title": "Advertising Consent",
            "type": "string"
          },
          "analytics_subject_id": {
            "title": "Analytics Subject Id",
            "type": "string"
          },
          "product_analytics_consent": {
            "title": "Product Analytics Consent",
            "type": "string"
          },
          "service_access": {
            "title": "Service Access",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "analytics_subject_id",
          "product_analytics_consent",
          "advertising_consent",
          "service_access"
        ],
        "title": "AccountView",
        "type": "object"
      },
      "ActivityPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ActivityRow"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_count"
        ],
        "title": "ActivityPage",
        "type": "object"
      },
      "ActivityRow": {
        "properties": {
          "deprecated": {
            "default": false,
            "title": "Deprecated",
            "type": "boolean"
          },
          "event_kind": {
            "enum": [
              "training_started",
              "model_hosted"
            ],
            "title": "Event Kind",
            "type": "string"
          },
          "job_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Number"
          },
          "job_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Status"
          },
          "model_base_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Base Name"
          },
          "model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Name"
          },
          "model_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Slug"
          },
          "model_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Status"
          },
          "occurred_at": {
            "format": "date-time",
            "title": "Occurred At",
            "type": "string"
          },
          "owner_slug": {
            "title": "Owner Slug",
            "type": "string"
          },
          "project_archived": {
            "title": "Project Archived",
            "type": "boolean"
          },
          "project_archived_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Archived At"
          },
          "project_slug": {
            "title": "Project Slug",
            "type": "string"
          },
          "source_id": {
            "title": "Source Id",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "event_kind",
          "source_id",
          "occurred_at",
          "owner_slug",
          "project_slug",
          "project_archived",
          "status"
        ],
        "title": "ActivityRow",
        "type": "object"
      },
      "ApiError": {
        "properties": {
          "detail": {
            "$ref": "#/components/schemas/ApiErrorDetail"
          }
        },
        "required": [
          "detail"
        ],
        "title": "ApiError",
        "type": "object"
      },
      "ApiErrorDetail": {
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Errors"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "ApiErrorDetail",
        "type": "object"
      },
      "BaseModelCatalog": {
        "properties": {
          "base_models": {
            "items": {
              "$ref": "#/components/schemas/TextBaseModel"
            },
            "title": "Base Models",
            "type": "array"
          },
          "embedding_models": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingBaseModel"
            },
            "title": "Embedding Models",
            "type": "array"
          },
          "inference": {
            "$ref": "#/components/schemas/InferenceSettings"
          },
          "limits": {
            "additionalProperties": {
              "$ref": "#/components/schemas/TrainingLimit"
            },
            "title": "Limits",
            "type": "object"
          },
          "profiles": {
            "additionalProperties": {
              "$ref": "#/components/schemas/TrainingProfileBounds"
            },
            "title": "Profiles",
            "type": "object"
          }
        },
        "required": [
          "base_models",
          "limits",
          "inference",
          "profiles",
          "embedding_models"
        ],
        "title": "BaseModelCatalog",
        "type": "object"
      },
      "ChatBody": {
        "properties": {
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "message_count": {
            "title": "Message Count",
            "type": "integer"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/ChatMessageBody"
            },
            "title": "Messages",
            "type": "array"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/ChatTag"
            },
            "title": "Tags",
            "type": "array"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at",
          "updated_at",
          "message_count",
          "tags",
          "messages"
        ],
        "title": "ChatBody",
        "type": "object"
      },
      "ChatCategories": {
        "properties": {
          "categories": {
            "items": {
              "$ref": "#/components/schemas/ChatCategory"
            },
            "title": "Categories",
            "type": "array"
          }
        },
        "required": [
          "categories"
        ],
        "title": "ChatCategories",
        "type": "object"
      },
      "ChatCategory": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "key",
          "label",
          "count"
        ],
        "title": "ChatCategory",
        "type": "object"
      },
      "ChatChanged": {
        "properties": {
          "chat": {
            "$ref": "#/components/schemas/ChatBody"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "chat"
        ],
        "title": "ChatChanged",
        "type": "object"
      },
      "ChatCompletionChoice": {
        "properties": {
          "finish_reason": {
            "default": "stop",
            "title": "Finish Reason",
            "type": "string"
          },
          "index": {
            "default": 0,
            "title": "Index",
            "type": "integer"
          },
          "logprobs": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Logprobs"
          },
          "message": {
            "$ref": "#/components/schemas/ChatCompletionMessage"
          }
        },
        "required": [
          "message"
        ],
        "title": "ChatCompletionChoice",
        "type": "object"
      },
      "ChatCompletionMessage": {
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "role": {
            "default": "assistant",
            "title": "Role",
            "type": "string"
          },
          "tool_calls": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ToolCall"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Calls"
          }
        },
        "title": "ChatCompletionMessage",
        "type": "object"
      },
      "ChatCompletionRequest": {
        "properties": {
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 1024,
            "title": "Max Tokens"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/Message"
            },
            "title": "Messages",
            "type": "array"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "reasoning_effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Effort"
          },
          "stream": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": false,
            "title": "Stream"
          },
          "stream_options": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StreamOptions"
              },
              {
                "type": "null"
              }
            ]
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 1.0,
            "title": "Temperature"
          },
          "tools": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Tool"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tools"
          },
          "top_p": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 1.0,
            "title": "Top P"
          }
        },
        "required": [
          "messages"
        ],
        "title": "ChatCompletionRequest",
        "type": "object"
      },
      "ChatCompletionResponse": {
        "properties": {
          "choices": {
            "items": {
              "$ref": "#/components/schemas/ChatCompletionChoice"
            },
            "title": "Choices",
            "type": "array"
          },
          "created": {
            "title": "Created",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "object": {
            "default": "chat.completion",
            "title": "Object",
            "type": "string"
          },
          "system_fingerprint": {
            "default": "fp_reopenly",
            "title": "System Fingerprint",
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage"
          }
        },
        "required": [
          "id",
          "created",
          "model",
          "choices"
        ],
        "title": "ChatCompletionResponse",
        "type": "object"
      },
      "ChatCreate": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/MessageCreate"
            },
            "title": "Messages",
            "type": "array"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "source": {
            "anyOf": [
              {
                "enum": [
                  "csv",
                  "api",
                  "editor",
                  "playground"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "messages"
        ],
        "title": "ChatCreate",
        "type": "object"
      },
      "ChatList": {
        "properties": {
          "chats": {
            "items": {
              "$ref": "#/components/schemas/ChatSummary"
            },
            "title": "Chats",
            "type": "array"
          },
          "is_last_page": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Last Page"
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "pagination": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pagination"
          },
          "previous_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous Cursor"
          },
          "search_applied": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Search Applied"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          },
          "total_count_capped": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Count Capped"
          }
        },
        "required": [
          "chats",
          "total_count"
        ],
        "title": "ChatList",
        "type": "object"
      },
      "ChatMessageBody": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "image_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Path"
          },
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          }
        },
        "required": [
          "id",
          "order",
          "role"
        ],
        "title": "ChatMessageBody",
        "type": "object"
      },
      "ChatSummary": {
        "properties": {
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "message_count": {
            "title": "Message Count",
            "type": "integer"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/ChatTag"
            },
            "title": "Tags",
            "type": "array"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at",
          "updated_at",
          "message_count",
          "tags"
        ],
        "title": "ChatSummary",
        "type": "object"
      },
      "ChatTag": {
        "properties": {
          "chat_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Count"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "ChatTag",
        "type": "object"
      },
      "ChatTagList": {
        "items": {
          "$ref": "#/components/schemas/ChatTag"
        },
        "title": "ChatTagList",
        "type": "array"
      },
      "ChatUpdate": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "messages": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/MessageCreate"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Messages"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          }
        },
        "title": "ChatUpdate",
        "type": "object"
      },
      "ChatView": {
        "properties": {
          "chat": {
            "$ref": "#/components/schemas/ChatBody"
          }
        },
        "required": [
          "chat"
        ],
        "title": "ChatView",
        "type": "object"
      },
      "ChatsCreated": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "count"
        ],
        "title": "ChatsCreated",
        "type": "object"
      },
      "CheckoutPurchase": {
        "properties": {
          "credits": {
            "title": "Credits",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "money_amount": {
            "title": "Money Amount",
            "type": "number"
          }
        },
        "required": [
          "credits",
          "currency",
          "money_amount"
        ],
        "title": "CheckoutPurchase",
        "type": "object"
      },
      "CheckoutRequest": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "currency": {
            "default": "usd",
            "enum": [
              "usd",
              "brl"
            ],
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "title": "CheckoutRequest",
        "type": "object"
      },
      "CheckoutResponse": {
        "properties": {
          "credits": {
            "title": "Credits",
            "type": "number"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "fx_rate": {
            "title": "Fx Rate",
            "type": "number"
          },
          "money_amount": {
            "title": "Money Amount",
            "type": "number"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "credits",
          "currency",
          "money_amount",
          "fx_rate"
        ],
        "title": "CheckoutResponse",
        "type": "object"
      },
      "CheckoutStatusResponse": {
        "properties": {
          "fulfilled": {
            "title": "Fulfilled",
            "type": "boolean"
          },
          "purchase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckoutPurchase"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "enum": [
              "pending",
              "authorized",
              "captured",
              "refund_pending",
              "fulfilled",
              "refunded",
              "canceled"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "fulfilled"
        ],
        "title": "CheckoutStatusResponse",
        "type": "object"
      },
      "CompletionChoice": {
        "properties": {
          "finish_reason": {
            "default": "stop",
            "title": "Finish Reason",
            "type": "string"
          },
          "index": {
            "default": 0,
            "title": "Index",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "title": "CompletionChoice",
        "type": "object"
      },
      "CompletionRequest": {
        "properties": {
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 1024,
            "title": "Max Tokens"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "title": "Prompt"
          },
          "reasoning_effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Effort"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 1.0,
            "title": "Temperature"
          },
          "top_p": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 1.0,
            "title": "Top P"
          }
        },
        "required": [
          "prompt"
        ],
        "title": "CompletionRequest",
        "type": "object"
      },
      "CompletionResponse": {
        "properties": {
          "choices": {
            "items": {
              "$ref": "#/components/schemas/CompletionChoice"
            },
            "title": "Choices",
            "type": "array"
          },
          "created": {
            "title": "Created",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "object": {
            "default": "text_completion",
            "title": "Object",
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage"
          }
        },
        "required": [
          "id",
          "created",
          "model",
          "choices"
        ],
        "title": "CompletionResponse",
        "type": "object"
      },
      "ConfirmRequest": {
        "properties": {
          "category_from_answer": {
            "default": false,
            "title": "Category From Answer",
            "type": "boolean"
          },
          "expected_sha256": {
            "maxLength": 64,
            "minLength": 64,
            "title": "Expected Sha256",
            "type": "string"
          },
          "idempotency_key": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Idempotency Key",
            "type": "string"
          },
          "invalid_row_policy": {
            "default": "fail",
            "enum": [
              "fail",
              "skip"
            ],
            "title": "Invalid Row Policy",
            "type": "string"
          },
          "mapping": {
            "additionalProperties": true,
            "title": "Mapping",
            "type": "object"
          },
          "tags_from_answer": {
            "default": false,
            "title": "Tags From Answer",
            "type": "boolean"
          }
        },
        "required": [
          "mapping",
          "expected_sha256",
          "idempotency_key"
        ],
        "title": "ConfirmRequest",
        "type": "object"
      },
      "CreditAction": {
        "enum": [
          "training",
          "inference",
          "deposit",
          "refund"
        ],
        "title": "CreditAction",
        "type": "string"
      },
      "CreditTransactionRead": {
        "properties": {
          "action": {
            "$ref": "#/components/schemas/CreditAction"
          },
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "billable_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Billable Seconds"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "rate_credits_per_minute": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rate Credits Per Minute"
          },
          "surcharge_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Surcharge Percent"
          }
        },
        "required": [
          "id",
          "amount",
          "action",
          "created_at"
        ],
        "title": "CreditTransactionRead",
        "type": "object"
      },
      "CreditsResponse": {
        "properties": {
          "available_credits": {
            "title": "Available Credits",
            "type": "number"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/CreditTransactionRead"
            },
            "title": "History",
            "type": "array"
          }
        },
        "required": [
          "available_credits",
          "history"
        ],
        "title": "CreditsResponse",
        "type": "object"
      },
      "CursorUsageResponse": {
        "properties": {
          "available_months": {
            "items": {
              "type": "string"
            },
            "title": "Available Months",
            "type": "array"
          },
          "billable_seconds": {
            "title": "Billable Seconds",
            "type": "number"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/UsageCategory"
            },
            "title": "Categories",
            "type": "array"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/UsageEntry"
            },
            "title": "Entries",
            "type": "array"
          },
          "entries_next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entries Next Cursor"
          },
          "entries_total_count": {
            "title": "Entries Total Count",
            "type": "integer"
          },
          "entries_truncated": {
            "title": "Entries Truncated",
            "type": "boolean"
          },
          "month": {
            "title": "Month",
            "type": "string"
          },
          "net_credits": {
            "title": "Net Credits",
            "type": "number"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/UsageProject"
            },
            "title": "Projects",
            "type": "array"
          },
          "spent_credits": {
            "title": "Spent Credits",
            "type": "number"
          },
          "unrecorded_charges": {
            "title": "Unrecorded Charges",
            "type": "integer"
          }
        },
        "required": [
          "month",
          "available_months",
          "spent_credits",
          "net_credits",
          "billable_seconds",
          "categories",
          "projects",
          "entries",
          "entries_truncated",
          "unrecorded_charges",
          "entries_next_cursor",
          "entries_total_count"
        ],
        "title": "CursorUsageResponse",
        "type": "object"
      },
      "DashboardCounts": {
        "properties": {
          "active_projects": {
            "title": "Active Projects",
            "type": "integer"
          },
          "archived_projects": {
            "title": "Archived Projects",
            "type": "integer"
          },
          "base_models": {
            "title": "Base Models",
            "type": "integer"
          },
          "chats": {
            "title": "Chats",
            "type": "integer"
          },
          "hosted_models": {
            "title": "Hosted Models",
            "type": "integer"
          },
          "running_jobs": {
            "title": "Running Jobs",
            "type": "integer"
          }
        },
        "required": [
          "active_projects",
          "archived_projects",
          "chats",
          "running_jobs",
          "hosted_models",
          "base_models"
        ],
        "title": "DashboardCounts",
        "type": "object"
      },
      "DashboardJob": {
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "deprecated": {
            "default": false,
            "title": "Deprecated",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Name"
          },
          "number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "owner_slug": {
            "title": "Owner Slug",
            "type": "string"
          },
          "project_slug": {
            "title": "Project Slug",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "owner_slug",
          "project_slug"
        ],
        "title": "DashboardJob",
        "type": "object"
      },
      "DashboardModel": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "owner_slug": {
            "title": "Owner Slug",
            "type": "string"
          },
          "project_slug": {
            "title": "Project Slug",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "task": {
            "title": "Task",
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "task",
          "active",
          "owner_slug",
          "project_slug"
        ],
        "title": "DashboardModel",
        "type": "object"
      },
      "DashboardResponse": {
        "properties": {
          "available_credits": {
            "title": "Available Credits",
            "type": "number"
          },
          "counts": {
            "$ref": "#/components/schemas/DashboardCounts"
          },
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "partial_errors": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Partial Errors",
            "type": "array"
          },
          "recent_jobs": {
            "items": {
              "$ref": "#/components/schemas/DashboardJob"
            },
            "title": "Recent Jobs",
            "type": "array"
          },
          "recent_models": {
            "items": {
              "$ref": "#/components/schemas/DashboardModel"
            },
            "title": "Recent Models",
            "type": "array"
          }
        },
        "required": [
          "counts",
          "available_credits",
          "recent_jobs",
          "recent_models",
          "generated_at"
        ],
        "title": "DashboardResponse",
        "type": "object"
      },
      "DatasetLimitValues": {
        "properties": {
          "max_category_characters": {
            "title": "Max Category Characters",
            "type": "integer"
          },
          "max_columns": {
            "title": "Max Columns",
            "type": "integer"
          },
          "max_error_samples": {
            "title": "Max Error Samples",
            "type": "integer"
          },
          "max_examples": {
            "title": "Max Examples",
            "type": "integer"
          },
          "max_field_characters": {
            "title": "Max Field Characters",
            "type": "integer"
          },
          "max_messages": {
            "title": "Max Messages",
            "type": "integer"
          },
          "max_rows_per_import": {
            "title": "Max Rows Per Import",
            "type": "integer"
          },
          "max_tags_per_example": {
            "title": "Max Tags Per Example",
            "type": "integer"
          },
          "max_text_bytes": {
            "title": "Max Text Bytes",
            "type": "integer"
          },
          "max_upload_bytes": {
            "title": "Max Upload Bytes",
            "type": "integer"
          }
        },
        "required": [
          "max_examples",
          "max_messages",
          "max_text_bytes",
          "max_upload_bytes",
          "max_rows_per_import",
          "max_columns",
          "max_field_characters",
          "max_category_characters",
          "max_tags_per_example",
          "max_error_samples"
        ],
        "title": "DatasetLimitValues",
        "type": "object"
      },
      "DatasetLimits": {
        "properties": {
          "dataset_id": {
            "title": "Dataset Id",
            "type": "integer"
          },
          "dataset_kind": {
            "title": "Dataset Kind",
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/DatasetLimitValues"
          },
          "remaining": {
            "$ref": "#/components/schemas/DatasetUsage"
          },
          "used": {
            "$ref": "#/components/schemas/DatasetUsage"
          }
        },
        "required": [
          "dataset_id",
          "dataset_kind",
          "limits",
          "used",
          "remaining"
        ],
        "title": "DatasetLimits",
        "type": "object"
      },
      "DatasetList": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/DatasetRow"
            },
            "title": "Data",
            "type": "array"
          },
          "max_datasets": {
            "title": "Max Datasets",
            "type": "integer"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_count",
          "max_datasets"
        ],
        "title": "DatasetList",
        "type": "object"
      },
      "DatasetRow": {
        "properties": {
          "archived_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "is_default": {
            "title": "Is Default",
            "type": "boolean"
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "ready_examples": {
            "title": "Ready Examples",
            "type": "integer"
          },
          "source": {
            "title": "Source",
            "type": "string"
          },
          "sources": {
            "items": {
              "type": "string"
            },
            "title": "Sources",
            "type": "array"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "is_default",
          "source",
          "sources",
          "ready_examples",
          "created_at"
        ],
        "title": "DatasetRow",
        "type": "object"
      },
      "DatasetTag": {
        "properties": {
          "example_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example Count"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "DatasetTag",
        "type": "object"
      },
      "DatasetTagList": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/DatasetTag"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "DatasetTagList",
        "type": "object"
      },
      "DatasetUsage": {
        "properties": {
          "examples": {
            "title": "Examples",
            "type": "integer"
          },
          "messages": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Messages"
          },
          "text_bytes": {
            "title": "Text Bytes",
            "type": "integer"
          }
        },
        "required": [
          "examples",
          "text_bytes"
        ],
        "title": "DatasetUsage",
        "type": "object"
      },
      "Deleted": {
        "properties": {
          "status": {
            "const": "deleted",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "Deleted",
        "type": "object"
      },
      "DownloadFile": {
        "properties": {
          "path": {
            "title": "Path",
            "type": "string"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          }
        },
        "required": [
          "path",
          "size_bytes"
        ],
        "title": "DownloadFile",
        "type": "object"
      },
      "DurationComponents": {
        "properties": {
          "calibrated_workload_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Calibrated Workload Seconds"
          },
          "embedded_evaluation_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Embedded Evaluation Seconds"
          },
          "estimator_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimator Version"
          },
          "evaluation_adjustment_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Adjustment Seconds"
          },
          "evaluation_scaling_allowance_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Scaling Allowance Seconds"
          },
          "execution_limit_seconds": {
            "title": "Execution Limit Seconds",
            "type": "number"
          },
          "post_processing_allowance_seconds": {
            "title": "Post Processing Allowance Seconds",
            "type": "number"
          },
          "projected_active_seconds": {
            "title": "Projected Active Seconds",
            "type": "number"
          },
          "scheduled_evaluation_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduled Evaluation Seconds"
          },
          "training_workload_seconds": {
            "title": "Training Workload Seconds",
            "type": "number"
          }
        },
        "required": [
          "training_workload_seconds",
          "post_processing_allowance_seconds",
          "projected_active_seconds",
          "execution_limit_seconds"
        ],
        "title": "DurationComponents",
        "type": "object"
      },
      "EmailCreate": {
        "properties": {
          "code": {
            "maxLength": 32,
            "minLength": 1,
            "title": "Code",
            "type": "string"
          },
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "email",
          "code"
        ],
        "title": "EmailCreate",
        "type": "object"
      },
      "EmailUpdated": {
        "properties": {
          "email": {
            "title": "Email",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "verified": {
            "title": "Verified",
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "email",
          "verified"
        ],
        "title": "EmailUpdated",
        "type": "object"
      },
      "EmailVerificationRequest": {
        "properties": {
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "title": "EmailVerificationRequest",
        "type": "object"
      },
      "EmbeddingArtifactDownloadMetadata": {
        "properties": {
          "artifact_id": {
            "title": "Artifact Id",
            "type": "integer"
          },
          "catalog_id": {
            "title": "Catalog Id",
            "type": "string"
          },
          "files": {
            "items": {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "type": "object"
            },
            "title": "Files",
            "type": "array"
          },
          "manifest_schema": {
            "title": "Manifest Schema",
            "type": "integer"
          },
          "manifest_sha256": {
            "title": "Manifest Sha256",
            "type": "string"
          },
          "model_id": {
            "title": "Model Id",
            "type": "integer"
          },
          "model_slug": {
            "title": "Model Slug",
            "type": "string"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "source_revision": {
            "title": "Source Revision",
            "type": "string"
          }
        },
        "required": [
          "model_id",
          "model_slug",
          "artifact_id",
          "catalog_id",
          "source_revision",
          "manifest_schema",
          "manifest_sha256",
          "size_bytes",
          "files"
        ],
        "title": "EmbeddingArtifactDownloadMetadata",
        "type": "object"
      },
      "EmbeddingBaseModel": {
        "properties": {
          "allow_query_instruction_override": {
            "title": "Allow Query Instruction Override",
            "type": "boolean"
          },
          "allowed_dimensions": {
            "items": {
              "type": "integer"
            },
            "title": "Allowed Dimensions",
            "type": "array"
          },
          "architecture": {
            "title": "Architecture",
            "type": "string"
          },
          "artifact_manifest_schema": {
            "title": "Artifact Manifest Schema",
            "type": "integer"
          },
          "catalog_id": {
            "title": "Catalog Id",
            "type": "string"
          },
          "default_query_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Query Instruction"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "max_batch_items": {
            "title": "Max Batch Items",
            "type": "integer"
          },
          "max_batch_tokens": {
            "title": "Max Batch Tokens",
            "type": "integer"
          },
          "max_input_tokens": {
            "title": "Max Input Tokens",
            "type": "integer"
          },
          "native_dimension": {
            "title": "Native Dimension",
            "type": "integer"
          },
          "normalization": {
            "title": "Normalization",
            "type": "string"
          },
          "pooling": {
            "title": "Pooling",
            "type": "string"
          },
          "task": {
            "title": "Task",
            "type": "string"
          }
        },
        "required": [
          "catalog_id",
          "display_name",
          "architecture",
          "task",
          "native_dimension",
          "allowed_dimensions",
          "max_input_tokens",
          "max_batch_items",
          "max_batch_tokens",
          "normalization",
          "pooling",
          "allow_query_instruction_override",
          "artifact_manifest_schema"
        ],
        "title": "EmbeddingBaseModel",
        "type": "object"
      },
      "EmbeddingCallUsage": {
        "properties": {
          "billable_requests": {
            "title": "Billable Requests",
            "type": "integer"
          },
          "input_tokens": {
            "title": "Input Tokens",
            "type": "integer"
          }
        },
        "required": [
          "input_tokens",
          "billable_requests"
        ],
        "title": "EmbeddingCallUsage",
        "type": "object"
      },
      "EmbeddingData": {
        "properties": {
          "embedding": {
            "anyOf": [
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "string"
              }
            ],
            "title": "Embedding"
          },
          "index": {
            "minimum": 0.0,
            "title": "Index",
            "type": "integer"
          },
          "object": {
            "const": "embedding",
            "default": "embedding",
            "title": "Object",
            "type": "string"
          },
          "truncated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Truncated"
          }
        },
        "required": [
          "embedding",
          "index"
        ],
        "title": "EmbeddingData",
        "type": "object"
      },
      "EmbeddingDatasetName": {
        "properties": {
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "EmbeddingDatasetName",
        "type": "object"
      },
      "EmbeddingExampleBody": {
        "properties": {
          "anchor": {
            "title": "Anchor",
            "type": "string"
          },
          "content_sha256": {
            "title": "Content Sha256",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "dataset_id": {
            "title": "Dataset Id",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "negative": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negative"
          },
          "positive": {
            "title": "Positive",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "source": {
            "title": "Source",
            "type": "string"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Tag Ids",
            "type": "array"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "dataset_id",
          "anchor",
          "positive",
          "source",
          "metadata",
          "content_sha256",
          "revision",
          "tag_ids",
          "created_at"
        ],
        "title": "EmbeddingExampleBody",
        "type": "object"
      },
      "EmbeddingExampleCreate": {
        "properties": {
          "anchor": {
            "maxLength": 20480,
            "minLength": 1,
            "title": "Anchor",
            "type": "string"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "negative": {
            "anyOf": [
              {
                "maxLength": 20480,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negative"
          },
          "positive": {
            "maxLength": 20480,
            "minLength": 1,
            "title": "Positive",
            "type": "string"
          },
          "source": {
            "default": "editor",
            "enum": [
              "editor",
              "playground"
            ],
            "title": "Source",
            "type": "string"
          }
        },
        "required": [
          "anchor",
          "positive"
        ],
        "title": "EmbeddingExampleCreate",
        "type": "object"
      },
      "EmbeddingExamplePage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingExampleBody"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_count"
        ],
        "title": "EmbeddingExamplePage",
        "type": "object"
      },
      "EmbeddingExampleUpdate": {
        "properties": {
          "anchor": {
            "maxLength": 20480,
            "minLength": 1,
            "title": "Anchor",
            "type": "string"
          },
          "expected_revision": {
            "minimum": 1.0,
            "title": "Expected Revision",
            "type": "integer"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "negative": {
            "anyOf": [
              {
                "maxLength": 20480,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negative"
          },
          "positive": {
            "maxLength": 20480,
            "minLength": 1,
            "title": "Positive",
            "type": "string"
          }
        },
        "required": [
          "anchor",
          "positive",
          "expected_revision"
        ],
        "title": "EmbeddingExampleUpdate",
        "type": "object"
      },
      "EmbeddingReadinessRead": {
        "properties": {
          "matching_providers": {
            "default": 0,
            "title": "Matching Providers",
            "type": "integer"
          },
          "observed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Observed At"
          },
          "ready": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ready"
          },
          "ready_providers": {
            "default": 0,
            "title": "Ready Providers",
            "type": "integer"
          },
          "stale": {
            "default": false,
            "title": "Stale",
            "type": "boolean"
          },
          "status": {
            "enum": [
              "ready",
              "unavailable",
              "stale",
              "unknown"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "EmbeddingReadinessRead",
        "type": "object"
      },
      "EmbeddingRecipeOption": {
        "properties": {
          "execution_available": {
            "title": "Execution Available",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "max_steps_range": {
            "items": {
              "type": "integer"
            },
            "title": "Max Steps Range",
            "type": "array"
          },
          "profile": {
            "$ref": "#/components/schemas/EmbeddingTrainingProfile"
          },
          "seed_range": {
            "items": {
              "type": "integer"
            },
            "title": "Seed Range",
            "type": "array"
          },
          "setting_bounds": {
            "additionalProperties": {
              "$ref": "#/components/schemas/SettingBound"
            },
            "title": "Setting Bounds",
            "type": "object"
          }
        },
        "required": [
          "id",
          "profile",
          "max_steps_range",
          "seed_range",
          "setting_bounds",
          "execution_available"
        ],
        "title": "EmbeddingRecipeOption",
        "type": "object"
      },
      "EmbeddingRequest": {
        "properties": {
          "dimensions": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dimensions"
          },
          "encoding_format": {
            "default": "float",
            "enum": [
              "float",
              "base64"
            ],
            "title": "Encoding Format",
            "type": "string"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "title": "Input"
          },
          "input_type": {
            "anyOf": [
              {
                "enum": [
                  "query",
                  "document"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input Type"
          },
          "model": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "type": "string"
          },
          "truncate": {
            "default": false,
            "title": "Truncate",
            "type": "boolean"
          }
        },
        "required": [
          "model",
          "input"
        ],
        "title": "EmbeddingRequest",
        "type": "object"
      },
      "EmbeddingResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingData"
            },
            "title": "Data",
            "type": "array"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "object": {
            "const": "list",
            "default": "list",
            "title": "Object",
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/EmbeddingUsage"
          }
        },
        "required": [
          "data",
          "model",
          "usage"
        ],
        "title": "EmbeddingResponse",
        "type": "object"
      },
      "EmbeddingSelectionSummary": {
        "properties": {
          "borrowed_negative_count": {
            "default": 0,
            "title": "Borrowed Negative Count",
            "type": "integer"
          },
          "component_count": {
            "title": "Component Count",
            "type": "integer"
          },
          "eval_count": {
            "title": "Eval Count",
            "type": "integer"
          },
          "eval_explicit_negative_count": {
            "title": "Eval Explicit Negative Count",
            "type": "integer"
          },
          "example_count": {
            "title": "Example Count",
            "type": "integer"
          },
          "scheduled_pairs_per_epoch": {
            "title": "Scheduled Pairs Per Epoch",
            "type": "integer"
          },
          "scheduled_triplets_per_epoch": {
            "title": "Scheduled Triplets Per Epoch",
            "type": "integer"
          },
          "selection_sha256": {
            "title": "Selection Sha256",
            "type": "string"
          },
          "text_bytes": {
            "title": "Text Bytes",
            "type": "integer"
          },
          "train_count": {
            "title": "Train Count",
            "type": "integer"
          },
          "train_explicit_negative_count": {
            "title": "Train Explicit Negative Count",
            "type": "integer"
          }
        },
        "required": [
          "selection_sha256",
          "example_count",
          "component_count",
          "train_count",
          "eval_count",
          "text_bytes",
          "train_explicit_negative_count",
          "eval_explicit_negative_count",
          "scheduled_pairs_per_epoch",
          "scheduled_triplets_per_epoch"
        ],
        "title": "EmbeddingSelectionSummary",
        "type": "object"
      },
      "EmbeddingSessionRun": {
        "properties": {
          "dataset_id": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Id"
          },
          "dataset_version_id": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Version Id"
          },
          "documents": {
            "items": {
              "type": "string"
            },
            "maxItems": 8,
            "title": "Documents",
            "type": "array"
          },
          "index_id": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Index Id"
          },
          "input_type": {
            "default": "document",
            "enum": [
              "query",
              "document"
            ],
            "title": "Input Type",
            "type": "string"
          },
          "inputs": {
            "items": {
              "type": "string"
            },
            "maxItems": 8,
            "title": "Inputs",
            "type": "array"
          },
          "mode": {
            "enum": [
              "search",
              "similarity",
              "vector"
            ],
            "title": "Mode",
            "type": "string"
          },
          "model": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "type": "string"
          },
          "query": {
            "anyOf": [
              {
                "maxLength": 32000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query"
          },
          "result": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "title": "Result",
            "type": "object"
          },
          "source": {
            "anyOf": [
              {
                "maxLength": 32000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "top_k": {
            "default": 5,
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Top K",
            "type": "integer"
          }
        },
        "required": [
          "mode",
          "model",
          "result"
        ],
        "title": "EmbeddingSessionRun",
        "type": "object"
      },
      "EmbeddingTagBatch": {
        "properties": {
          "rows": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingTagRow"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Rows",
            "type": "array"
          }
        },
        "required": [
          "rows"
        ],
        "title": "EmbeddingTagBatch",
        "type": "object"
      },
      "EmbeddingTagName": {
        "properties": {
          "name": {
            "maxLength": 80,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "EmbeddingTagName",
        "type": "object"
      },
      "EmbeddingTagRow": {
        "properties": {
          "example_id": {
            "minimum": 1.0,
            "title": "Example Id",
            "type": "integer"
          },
          "expected_revision": {
            "minimum": 1.0,
            "title": "Expected Revision",
            "type": "integer"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "maxItems": 32,
            "title": "Tag Ids",
            "type": "array"
          }
        },
        "required": [
          "example_id",
          "expected_revision",
          "tag_ids"
        ],
        "title": "EmbeddingTagRow",
        "type": "object"
      },
      "EmbeddingTarget": {
        "properties": {
          "adapter_manifest_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Adapter Manifest Sha256"
          },
          "allow_query_instruction_override": {
            "title": "Allow Query Instruction Override",
            "type": "boolean"
          },
          "allowed_dimensions": {
            "items": {
              "type": "integer"
            },
            "title": "Allowed Dimensions",
            "type": "array"
          },
          "architecture": {
            "title": "Architecture",
            "type": "string"
          },
          "artifact_id": {
            "title": "Artifact Id",
            "type": "integer"
          },
          "artifact_manifest_schema": {
            "title": "Artifact Manifest Schema",
            "type": "integer"
          },
          "catalog_id": {
            "title": "Catalog Id",
            "type": "string"
          },
          "default_query_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Query Instruction"
          },
          "manifest_sha256": {
            "title": "Manifest Sha256",
            "type": "string"
          },
          "max_input_tokens": {
            "title": "Max Input Tokens",
            "type": "integer"
          },
          "native_dimension": {
            "title": "Native Dimension",
            "type": "integer"
          },
          "normalization": {
            "title": "Normalization",
            "type": "string"
          },
          "pooling": {
            "title": "Pooling",
            "type": "string"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          }
        },
        "required": [
          "artifact_id",
          "catalog_id",
          "architecture",
          "manifest_sha256",
          "artifact_manifest_schema",
          "native_dimension",
          "allowed_dimensions",
          "max_input_tokens",
          "normalization",
          "pooling",
          "allow_query_instruction_override"
        ],
        "title": "EmbeddingTarget",
        "type": "object"
      },
      "EmbeddingTargetRead": {
        "properties": {
          "adapter_manifest_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Adapter Manifest Sha256"
          },
          "allow_query_instruction_override": {
            "default": false,
            "title": "Allow Query Instruction Override",
            "type": "boolean"
          },
          "allowed_dimensions": {
            "items": {
              "type": "integer"
            },
            "title": "Allowed Dimensions",
            "type": "array"
          },
          "architecture": {
            "title": "Architecture",
            "type": "string"
          },
          "artifact_id": {
            "title": "Artifact Id",
            "type": "integer"
          },
          "artifact_manifest_schema": {
            "title": "Artifact Manifest Schema",
            "type": "integer"
          },
          "catalog_id": {
            "title": "Catalog Id",
            "type": "string"
          },
          "default_query_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Query Instruction"
          },
          "evaluation_receipt_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Receipt Sha256"
          },
          "evaluation_verdict": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Verdict"
          },
          "manifest_sha256": {
            "title": "Manifest Sha256",
            "type": "string"
          },
          "max_input_tokens": {
            "title": "Max Input Tokens",
            "type": "integer"
          },
          "native_dimension": {
            "title": "Native Dimension",
            "type": "integer"
          },
          "normalization": {
            "title": "Normalization",
            "type": "string"
          },
          "pooling": {
            "title": "Pooling",
            "type": "string"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          }
        },
        "required": [
          "artifact_id",
          "catalog_id",
          "architecture",
          "manifest_sha256",
          "artifact_manifest_schema",
          "native_dimension",
          "allowed_dimensions",
          "max_input_tokens",
          "normalization",
          "pooling"
        ],
        "title": "EmbeddingTargetRead",
        "type": "object"
      },
      "EmbeddingTrainingCreate": {
        "properties": {
          "base_artifact_id": {
            "minimum": 1,
            "title": "Base Artifact Id",
            "type": "integer"
          },
          "dataset_id": {
            "minimum": 1,
            "title": "Dataset Id",
            "type": "integer"
          },
          "execution_limit_seconds": {
            "anyOf": [
              {
                "minimum": 5,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Execution Limit Seconds"
          },
          "max_steps": {
            "maximum": 10000,
            "minimum": 1,
            "title": "Max Steps",
            "type": "integer"
          },
          "recipe": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Recipe"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Seed"
          },
          "selection_sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "title": "Selection Sha256",
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "maxProperties": 17,
            "title": "Settings",
            "type": "object"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "maxItems": 32,
            "title": "Tag Ids",
            "type": "array"
          }
        },
        "required": [
          "dataset_id",
          "base_artifact_id",
          "max_steps",
          "selection_sha256"
        ],
        "title": "EmbeddingTrainingCreate",
        "type": "object"
      },
      "EmbeddingTrainingEstimate": {
        "properties": {
          "admission_ceiling_credits": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Admission Ceiling Credits",
            "type": "string"
          },
          "admission_ceiling_seconds": {
            "title": "Admission Ceiling Seconds",
            "type": "integer"
          },
          "estimated_credits": {
            "title": "Estimated Credits",
            "type": "null"
          },
          "reason": {
            "default": "Provider-billed embedding training coefficients are not measured yet",
            "title": "Reason",
            "type": "string"
          },
          "schema_version": {
            "const": 1,
            "default": 1,
            "title": "Schema Version",
            "type": "integer"
          },
          "status": {
            "const": "provisional",
            "default": "provisional",
            "title": "Status",
            "type": "string"
          },
          "task": {
            "const": "embedding",
            "default": "embedding",
            "title": "Task",
            "type": "string"
          }
        },
        "required": [
          "admission_ceiling_seconds",
          "admission_ceiling_credits"
        ],
        "title": "EmbeddingTrainingEstimate",
        "type": "object"
      },
      "EmbeddingTrainingOption": {
        "properties": {
          "base_artifact_id": {
            "title": "Base Artifact Id",
            "type": "integer"
          },
          "max_steps_range": {
            "items": {
              "type": "integer"
            },
            "title": "Max Steps Range",
            "type": "array"
          },
          "memory_tokens": {
            "title": "Memory Tokens",
            "type": "integer"
          },
          "profile": {
            "$ref": "#/components/schemas/EmbeddingTrainingProfile"
          },
          "recipes": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingRecipeOption"
            },
            "title": "Recipes",
            "type": "array"
          },
          "setting_bounds": {
            "additionalProperties": {
              "$ref": "#/components/schemas/SettingBound"
            },
            "title": "Setting Bounds",
            "type": "object"
          },
          "training_slot_scope": {
            "title": "Training Slot Scope",
            "type": "string"
          }
        },
        "required": [
          "base_artifact_id",
          "profile",
          "max_steps_range",
          "setting_bounds",
          "training_slot_scope",
          "memory_tokens"
        ],
        "title": "EmbeddingTrainingOption",
        "type": "object"
      },
      "EmbeddingTrainingPreview": {
        "properties": {
          "base_artifact_id": {
            "title": "Base Artifact Id",
            "type": "integer"
          },
          "planned_batches_per_epoch": {
            "title": "Planned Batches Per Epoch",
            "type": "integer"
          },
          "planned_steps_per_epoch": {
            "title": "Planned Steps Per Epoch",
            "type": "integer"
          },
          "profile": {
            "$ref": "#/components/schemas/EmbeddingTrainingProfile"
          },
          "selection": {
            "$ref": "#/components/schemas/EmbeddingSelectionSummary"
          },
          "task": {
            "title": "Task",
            "type": "string"
          },
          "training_slot_scope": {
            "title": "Training Slot Scope",
            "type": "string"
          }
        },
        "required": [
          "task",
          "base_artifact_id",
          "profile",
          "selection",
          "planned_batches_per_epoch",
          "planned_steps_per_epoch",
          "training_slot_scope"
        ],
        "title": "EmbeddingTrainingPreview",
        "type": "object"
      },
      "EmbeddingTrainingProfile": {
        "properties": {
          "alpha": {
            "title": "Alpha",
            "type": "integer"
          },
          "base_manifest_sha256": {
            "title": "Base Manifest Sha256",
            "type": "string"
          },
          "catalog_id": {
            "title": "Catalog Id",
            "type": "string"
          },
          "dimensions": {
            "title": "Dimensions",
            "type": "integer"
          },
          "document_instruction": {
            "title": "Document Instruction",
            "type": "string"
          },
          "early_stopping_patience": {
            "title": "Early Stopping Patience",
            "type": "integer"
          },
          "eval_steps": {
            "title": "Eval Steps",
            "type": "integer"
          },
          "gradient_accumulation_steps": {
            "title": "Gradient Accumulation Steps",
            "type": "integer"
          },
          "learning_rate": {
            "title": "Learning Rate",
            "type": "number"
          },
          "lora_dropout": {
            "title": "Lora Dropout",
            "type": "number"
          },
          "loss_scale": {
            "title": "Loss Scale",
            "type": "number"
          },
          "lr_scheduler": {
            "title": "Lr Scheduler",
            "type": "string"
          },
          "max_examples_per_query": {
            "title": "Max Examples Per Query",
            "type": "integer"
          },
          "max_seq_length": {
            "title": "Max Seq Length",
            "type": "integer"
          },
          "max_steps": {
            "title": "Max Steps",
            "type": "integer"
          },
          "mode": {
            "title": "Mode",
            "type": "string"
          },
          "normalized": {
            "title": "Normalized",
            "type": "boolean"
          },
          "optimizer": {
            "title": "Optimizer",
            "type": "string"
          },
          "per_device_batch_size": {
            "title": "Per Device Batch Size",
            "type": "integer"
          },
          "per_device_eval_batch_size": {
            "title": "Per Device Eval Batch Size",
            "type": "integer"
          },
          "precision": {
            "title": "Precision",
            "type": "string"
          },
          "profile_id": {
            "title": "Profile Id",
            "type": "string"
          },
          "query_instruction": {
            "title": "Query Instruction",
            "type": "string"
          },
          "rank": {
            "title": "Rank",
            "type": "integer"
          },
          "seed": {
            "title": "Seed",
            "type": "integer"
          },
          "source_revision": {
            "title": "Source Revision",
            "type": "string"
          },
          "warmup_steps": {
            "title": "Warmup Steps",
            "type": "integer"
          }
        },
        "required": [
          "profile_id",
          "catalog_id",
          "source_revision",
          "base_manifest_sha256",
          "mode",
          "precision",
          "rank",
          "alpha",
          "max_seq_length",
          "query_instruction",
          "document_instruction",
          "dimensions",
          "normalized",
          "optimizer",
          "per_device_batch_size",
          "gradient_accumulation_steps",
          "max_steps",
          "eval_steps",
          "seed",
          "learning_rate",
          "max_examples_per_query",
          "warmup_steps",
          "loss_scale",
          "per_device_eval_batch_size",
          "early_stopping_patience",
          "lora_dropout",
          "lr_scheduler"
        ],
        "title": "EmbeddingTrainingProfile",
        "type": "object"
      },
      "EmbeddingTrainingProfiles": {
        "properties": {
          "profiles": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingTrainingOption"
            },
            "title": "Profiles",
            "type": "array"
          }
        },
        "required": [
          "profiles"
        ],
        "title": "EmbeddingTrainingProfiles",
        "type": "object"
      },
      "EmbeddingTrainingSelection": {
        "properties": {
          "base_artifact_id": {
            "minimum": 1.0,
            "title": "Base Artifact Id",
            "type": "integer"
          },
          "dataset_id": {
            "minimum": 1.0,
            "title": "Dataset Id",
            "type": "integer"
          },
          "execution_limit_seconds": {
            "anyOf": [
              {
                "minimum": 5.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution Limit Seconds"
          },
          "max_steps": {
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Max Steps",
            "type": "integer"
          },
          "recipe": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipe"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seed"
          },
          "settings": {
            "additionalProperties": true,
            "maxProperties": 17,
            "title": "Settings",
            "type": "object"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "maxItems": 32,
            "title": "Tag Ids",
            "type": "array"
          }
        },
        "required": [
          "dataset_id",
          "base_artifact_id",
          "max_steps"
        ],
        "title": "EmbeddingTrainingSelection",
        "type": "object"
      },
      "EmbeddingUsage": {
        "properties": {
          "prompt_tokens": {
            "minimum": 0.0,
            "title": "Prompt Tokens",
            "type": "integer"
          },
          "total_tokens": {
            "minimum": 0.0,
            "title": "Total Tokens",
            "type": "integer"
          }
        },
        "required": [
          "prompt_tokens",
          "total_tokens"
        ],
        "title": "EmbeddingUsage",
        "type": "object"
      },
      "EstimateRange": {
        "properties": {
          "high": {
            "title": "High",
            "type": "number"
          },
          "low": {
            "title": "Low",
            "type": "number"
          }
        },
        "required": [
          "low",
          "high"
        ],
        "title": "EstimateRange",
        "type": "object"
      },
      "EvaluationAvailabilityPreview": {
        "properties": {
          "holdout_percent": {
            "exclusiveMinimum": 0.0,
            "maximum": 100.0,
            "title": "Holdout Percent",
            "type": "number"
          },
          "minimum_validation_examples": {
            "exclusiveMinimum": 0.0,
            "title": "Minimum Validation Examples",
            "type": "integer"
          },
          "selection_examples_required": {
            "exclusiveMinimum": 0.0,
            "title": "Selection Examples Required",
            "type": "integer"
          }
        },
        "required": [
          "holdout_percent",
          "minimum_validation_examples",
          "selection_examples_required"
        ],
        "title": "EvaluationAvailabilityPreview",
        "type": "object"
      },
      "EvaluationCadenceEvents": {
        "properties": {
          "events": {
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Events",
            "type": "integer"
          },
          "kind": {
            "const": "events",
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "events"
        ],
        "title": "EvaluationCadenceEvents",
        "type": "object"
      },
      "EvaluationCadenceFixedInterval": {
        "properties": {
          "interval_steps": {
            "minimum": 1.0,
            "title": "Interval Steps",
            "type": "integer"
          },
          "kind": {
            "const": "fixed_interval",
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "interval_steps"
        ],
        "title": "EvaluationCadenceFixedInterval",
        "type": "object"
      },
      "ExampleTagSet": {
        "properties": {
          "example_id": {
            "title": "Example Id",
            "type": "integer"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Tag Ids",
            "type": "array"
          }
        },
        "required": [
          "example_id",
          "revision",
          "tag_ids"
        ],
        "title": "ExampleTagSet",
        "type": "object"
      },
      "ExampleTagSets": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ExampleTagSet"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "ExampleTagSets",
        "type": "object"
      },
      "FunctionCall": {
        "properties": {
          "arguments": {
            "title": "Arguments",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "arguments"
        ],
        "title": "FunctionCall",
        "type": "object"
      },
      "FunctionDefinition": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "parameters": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parameters"
          }
        },
        "required": [
          "name"
        ],
        "title": "FunctionDefinition",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HostedModelPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/HostedModelRow"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "totals": {
            "$ref": "#/components/schemas/HostedModelTotals"
          }
        },
        "required": [
          "data",
          "totals"
        ],
        "title": "HostedModelPage",
        "type": "object"
      },
      "HostedModelRow": {
        "properties": {
          "access": {
            "title": "Access",
            "type": "string"
          },
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "base_model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Model Name"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "deprecated": {
            "default": false,
            "title": "Deprecated",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "is_public": {
            "title": "Is Public",
            "type": "boolean"
          },
          "max_context_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Context Tokens"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "owner_slug": {
            "title": "Owner Slug",
            "type": "string"
          },
          "project_archived_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Archived At"
          },
          "project_slug": {
            "title": "Project Slug",
            "type": "string"
          },
          "requests_7d": {
            "default": 0,
            "title": "Requests 7D",
            "type": "integer"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "source_kind": {
            "title": "Source Kind",
            "type": "string"
          },
          "spend_mtd_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Mtd Credits"
          },
          "target": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target"
          },
          "task": {
            "title": "Task",
            "type": "string"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          },
          "training_job_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Number"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "task",
          "source_kind",
          "training_job_id",
          "active",
          "is_public",
          "created_at",
          "owner_slug",
          "project_slug",
          "access"
        ],
        "title": "HostedModelRow",
        "type": "object"
      },
      "HostedModelTotals": {
        "properties": {
          "requests_7d": {
            "default": 0,
            "title": "Requests 7D",
            "type": "integer"
          },
          "spend_attributed_from": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Attributed From"
          },
          "spend_mtd_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Mtd Credits"
          }
        },
        "title": "HostedModelTotals",
        "type": "object"
      },
      "ImportCancelled": {
        "properties": {
          "cancelled": {
            "title": "Cancelled",
            "type": "boolean"
          },
          "import": {
            "$ref": "#/components/schemas/ImportRecord"
          }
        },
        "required": [
          "import",
          "cancelled"
        ],
        "title": "ImportCancelled",
        "type": "object"
      },
      "ImportConfirmed": {
        "properties": {
          "import": {
            "$ref": "#/components/schemas/ImportRecord"
          },
          "queued": {
            "title": "Queued",
            "type": "boolean"
          }
        },
        "required": [
          "import",
          "queued"
        ],
        "title": "ImportConfirmed",
        "type": "object"
      },
      "ImportCreate": {
        "properties": {
          "filename": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filename"
          },
          "size_bytes": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size Bytes"
          }
        },
        "title": "ImportCreate",
        "type": "object"
      },
      "ImportCreated": {
        "properties": {
          "import": {
            "$ref": "#/components/schemas/ImportRecord"
          },
          "upload": {
            "$ref": "#/components/schemas/ImportUpload"
          }
        },
        "required": [
          "import",
          "upload"
        ],
        "title": "ImportCreated",
        "type": "object"
      },
      "ImportList": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ImportRecord"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data"
        ],
        "title": "ImportList",
        "type": "object"
      },
      "ImportPreviewBody": {
        "properties": {
          "blocked": {
            "title": "Blocked",
            "type": "boolean"
          },
          "counts": {
            "$ref": "#/components/schemas/ImportPreviewCounts"
          },
          "invalid_samples": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Invalid Samples",
            "type": "array"
          },
          "samples": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Samples",
            "type": "array"
          }
        },
        "required": [
          "counts",
          "samples",
          "invalid_samples",
          "blocked"
        ],
        "title": "ImportPreviewBody",
        "type": "object"
      },
      "ImportPreviewCounts": {
        "properties": {
          "blank": {
            "title": "Blank",
            "type": "integer"
          },
          "invalid": {
            "title": "Invalid",
            "type": "integer"
          },
          "invalid_by_reason": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Invalid By Reason",
            "type": "object"
          },
          "read": {
            "title": "Read",
            "type": "integer"
          },
          "valid": {
            "title": "Valid",
            "type": "integer"
          }
        },
        "required": [
          "read",
          "valid",
          "blank",
          "invalid",
          "invalid_by_reason"
        ],
        "title": "ImportPreviewCounts",
        "type": "object"
      },
      "ImportPreviewed": {
        "properties": {
          "import": {
            "$ref": "#/components/schemas/ImportRecord"
          },
          "preview": {
            "$ref": "#/components/schemas/ImportPreviewBody"
          },
          "row_estimate": {
            "title": "Row Estimate",
            "type": "integer"
          },
          "sampled_rows": {
            "title": "Sampled Rows",
            "type": "integer"
          }
        },
        "required": [
          "import",
          "sampled_rows",
          "row_estimate",
          "preview"
        ],
        "title": "ImportPreviewed",
        "type": "object"
      },
      "ImportProfile": {
        "properties": {
          "byte_size": {
            "title": "Byte Size",
            "type": "integer"
          },
          "headers": {
            "items": {
              "type": "string"
            },
            "title": "Headers",
            "type": "array"
          },
          "mapping": {
            "additionalProperties": true,
            "title": "Mapping",
            "type": "object"
          },
          "row_estimate": {
            "title": "Row Estimate",
            "type": "integer"
          },
          "sample_rows": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Sample Rows",
            "type": "array"
          },
          "sha256": {
            "title": "Sha256",
            "type": "string"
          },
          "warnings": {
            "items": {},
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "headers",
          "sample_rows",
          "row_estimate",
          "byte_size",
          "sha256",
          "mapping",
          "warnings"
        ],
        "title": "ImportProfile",
        "type": "object"
      },
      "ImportProfiled": {
        "properties": {
          "import": {
            "$ref": "#/components/schemas/ImportRecord"
          },
          "profile": {
            "$ref": "#/components/schemas/ImportProfile"
          }
        },
        "required": [
          "import",
          "profile"
        ],
        "title": "ImportProfiled",
        "type": "object"
      },
      "ImportRecord": {
        "properties": {
          "chats_created": {
            "title": "Chats Created",
            "type": "integer"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "dataset_id": {
            "title": "Dataset Id",
            "type": "integer"
          },
          "dataset_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Kind"
          },
          "embedding_examples_conflicted": {
            "title": "Embedding Examples Conflicted",
            "type": "integer"
          },
          "embedding_examples_created": {
            "title": "Embedding Examples Created",
            "type": "integer"
          },
          "embedding_examples_reused": {
            "title": "Embedding Examples Reused",
            "type": "integer"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Code"
          },
          "error_sample": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Sample"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "mapping": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mapping"
          },
          "messages_created": {
            "title": "Messages Created",
            "type": "integer"
          },
          "object_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Sha256"
          },
          "object_size_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Size Bytes"
          },
          "options": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "project_id": {
            "title": "Project Id",
            "type": "integer"
          },
          "rows_read": {
            "title": "Rows Read",
            "type": "integer"
          },
          "rows_skipped": {
            "title": "Rows Skipped",
            "type": "integer"
          },
          "rows_valid": {
            "title": "Rows Valid",
            "type": "integer"
          },
          "state": {
            "title": "State",
            "type": "string"
          },
          "terminal_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Terminal At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "project_id",
          "dataset_id",
          "state",
          "rows_read",
          "rows_valid",
          "rows_skipped",
          "chats_created",
          "messages_created",
          "embedding_examples_created",
          "embedding_examples_reused",
          "embedding_examples_conflicted",
          "created_at"
        ],
        "title": "ImportRecord",
        "type": "object"
      },
      "ImportUpload": {
        "properties": {
          "expires_in_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Seconds"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Headers",
            "type": "object"
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "max_bytes": {
            "title": "Max Bytes",
            "type": "integer"
          },
          "method": {
            "title": "Method",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "url",
          "method",
          "headers",
          "max_bytes"
        ],
        "title": "ImportUpload",
        "type": "object"
      },
      "ImportView": {
        "properties": {
          "import": {
            "$ref": "#/components/schemas/ImportRecord"
          }
        },
        "required": [
          "import"
        ],
        "title": "ImportView",
        "type": "object"
      },
      "InferenceDefaults": {
        "properties": {
          "max_tokens": {
            "title": "Max Tokens",
            "type": "integer"
          },
          "reasoning_effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Effort"
          },
          "stream": {
            "title": "Stream",
            "type": "boolean"
          },
          "temperature": {
            "title": "Temperature",
            "type": "number"
          },
          "top_p": {
            "title": "Top P",
            "type": "number"
          }
        },
        "required": [
          "max_tokens",
          "temperature",
          "top_p",
          "stream"
        ],
        "title": "InferenceDefaults",
        "type": "object"
      },
      "InferencePayer": {
        "enum": [
          "owner",
          "user"
        ],
        "title": "InferencePayer",
        "type": "string"
      },
      "InferenceSettings": {
        "properties": {
          "capabilities": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Capabilities",
            "type": "object"
          },
          "defaults": {
            "$ref": "#/components/schemas/InferenceDefaults"
          }
        },
        "required": [
          "defaults",
          "capabilities"
        ],
        "title": "InferenceSettings",
        "type": "object"
      },
      "JsonValue": {},
      "Me": {
        "properties": {
          "status": {
            "title": "Status",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/MeUser"
          }
        },
        "required": [
          "status",
          "user"
        ],
        "title": "Me",
        "type": "object"
      },
      "MeUser": {
        "properties": {
          "account_editing": {
            "title": "Account Editing",
            "type": "boolean"
          },
          "auth_method": {
            "title": "Auth Method",
            "type": "string"
          },
          "can_add_email": {
            "title": "Can Add Email",
            "type": "boolean"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "has_password": {
            "title": "Has Password",
            "type": "boolean"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "roles": {
            "items": {
              "type": "string"
            },
            "title": "Roles",
            "type": "array"
          },
          "scope": {
            "items": {
              "type": "string"
            },
            "title": "Scope",
            "type": "array"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "sub": {
            "title": "Sub",
            "type": "string"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          }
        },
        "required": [
          "sub",
          "auth_method",
          "scope",
          "roles",
          "account_editing",
          "has_password",
          "can_add_email"
        ],
        "title": "MeUser",
        "type": "object"
      },
      "Message": {
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/MessageContent"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "role": {
            "enum": [
              "system",
              "user",
              "assistant",
              "tool"
            ],
            "title": "Role",
            "type": "string"
          },
          "tool_call_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Call Id"
          },
          "tool_calls": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Calls"
          }
        },
        "required": [
          "role"
        ],
        "title": "Message",
        "type": "object"
      },
      "MessageContent": {
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "type": {
            "enum": [
              "text",
              "image_url"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "MessageContent",
        "type": "object"
      },
      "MessageCreate": {
        "properties": {
          "image_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Path"
          },
          "role": {
            "$ref": "#/components/schemas/MessageRole"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "role",
          "text"
        ],
        "title": "MessageCreate",
        "type": "object"
      },
      "MessageRole": {
        "enum": [
          "user",
          "assistant",
          "system",
          "tool"
        ],
        "title": "MessageRole",
        "type": "string"
      },
      "ModelTask": {
        "enum": [
          "text_generation",
          "embedding"
        ],
        "title": "ModelTask",
        "type": "string"
      },
      "OpenAIModel": {
        "properties": {
          "created": {
            "title": "Created",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "object": {
            "default": "model",
            "title": "Object",
            "type": "string"
          },
          "owned_by": {
            "default": "reopenly",
            "title": "Owned By",
            "type": "string"
          }
        },
        "required": [
          "id",
          "created"
        ],
        "title": "OpenAIModel",
        "type": "object"
      },
      "OpenAIModelList": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/OpenAIModel"
            },
            "title": "Data",
            "type": "array"
          },
          "object": {
            "default": "list",
            "title": "Object",
            "type": "string"
          }
        },
        "required": [
          "data"
        ],
        "title": "OpenAIModelList",
        "type": "object"
      },
      "PasswordUpdate": {
        "properties": {
          "current_password": {
            "minLength": 1,
            "title": "Current Password",
            "type": "string"
          },
          "new_password": {
            "minLength": 1,
            "title": "New Password",
            "type": "string"
          }
        },
        "required": [
          "current_password",
          "new_password"
        ],
        "title": "PasswordUpdate",
        "type": "object"
      },
      "PlatformNumbers": {
        "properties": {
          "credits_per_minute": {
            "title": "Credits Per Minute",
            "type": "number"
          },
          "signup_bonus_credits": {
            "title": "Signup Bonus Credits",
            "type": "number"
          }
        },
        "required": [
          "credits_per_minute",
          "signup_bonus_credits"
        ],
        "title": "PlatformNumbers",
        "type": "object"
      },
      "PlaygroundMessageIn": {
        "properties": {
          "content": {
            "maxLength": 32000,
            "minLength": 1,
            "title": "Content",
            "type": "string"
          },
          "role": {
            "enum": [
              "user",
              "assistant",
              "system"
            ],
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "title": "PlaygroundMessageIn",
        "type": "object"
      },
      "PlaygroundMessageRead": {
        "properties": {
          "content": {
            "title": "Content",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "title": "PlaygroundMessageRead",
        "type": "object"
      },
      "PlaygroundScore": {
        "properties": {
          "cosine_similarity": {
            "title": "Cosine Similarity",
            "type": "number"
          },
          "index": {
            "title": "Index",
            "type": "integer"
          },
          "score": {
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "index",
          "cosine_similarity",
          "score"
        ],
        "title": "PlaygroundScore",
        "type": "object"
      },
      "PlaygroundSessionPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PlaygroundSessionSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data"
        ],
        "title": "PlaygroundSessionPage",
        "type": "object"
      },
      "PlaygroundSessionRead": {
        "properties": {
          "dataset_chat_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Chat Id"
          },
          "dataset_message_positions": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Message Positions"
          },
          "dataset_saved_through": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Saved Through"
          },
          "embedding_mode": {
            "anyOf": [
              {
                "enum": [
                  "search",
                  "similarity",
                  "vector"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Embedding Mode"
          },
          "embedding_run": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddingSessionRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens"
          },
          "message_count": {
            "title": "Message Count",
            "type": "integer"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/PlaygroundMessageRead"
            },
            "title": "Messages",
            "type": "array"
          },
          "model_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Ref"
          },
          "parameters_varied": {
            "default": false,
            "title": "Parameters Varied",
            "type": "boolean"
          },
          "project_owner_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Owner Slug"
          },
          "project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Slug"
          },
          "reasoning_effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Effort"
          },
          "stream": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stream"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "title",
          "message_count",
          "messages"
        ],
        "title": "PlaygroundSessionRead",
        "type": "object"
      },
      "PlaygroundSessionSummary": {
        "properties": {
          "dataset_chat_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Chat Id"
          },
          "dataset_message_positions": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Message Positions"
          },
          "dataset_saved_through": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Saved Through"
          },
          "embedding_mode": {
            "anyOf": [
              {
                "enum": [
                  "search",
                  "similarity",
                  "vector"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Embedding Mode"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens"
          },
          "message_count": {
            "title": "Message Count",
            "type": "integer"
          },
          "model_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Ref"
          },
          "parameters_varied": {
            "default": false,
            "title": "Parameters Varied",
            "type": "boolean"
          },
          "project_owner_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Owner Slug"
          },
          "project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Slug"
          },
          "reasoning_effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Effort"
          },
          "stream": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stream"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "title",
          "message_count"
        ],
        "title": "PlaygroundSessionSummary",
        "type": "object"
      },
      "PlaygroundSessionWrite": {
        "properties": {
          "dataset_chat_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Chat Id"
          },
          "dataset_message_positions": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "maxItems": 200,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Message Positions"
          },
          "dataset_saved_through": {
            "anyOf": [
              {
                "maximum": 200.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Saved Through"
          },
          "embedding_run": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddingSessionRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "max_tokens": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/PlaygroundMessageIn"
            },
            "maxItems": 200,
            "title": "Messages",
            "type": "array"
          },
          "model_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Ref"
          },
          "project_owner_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Owner Slug"
          },
          "project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Slug"
          },
          "reasoning_effort": {
            "anyOf": [
              {
                "maxLength": 32,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Effort"
          },
          "served_model_ref": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Served Model Ref"
          },
          "stream": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stream"
          },
          "temperature": {
            "anyOf": [
              {
                "maximum": 2.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature"
          },
          "title": {
            "anyOf": [
              {
                "maxLength": 80,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "required": [
          "messages"
        ],
        "title": "PlaygroundSessionWrite",
        "type": "object"
      },
      "PlaygroundSimilarity": {
        "properties": {
          "document_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Document Instruction"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "query_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query Instruction"
          },
          "scores": {
            "items": {
              "$ref": "#/components/schemas/PlaygroundScore"
            },
            "title": "Scores",
            "type": "array"
          },
          "similarity": {
            "title": "Similarity",
            "type": "string"
          },
          "target": {
            "$ref": "#/components/schemas/EmbeddingTarget"
          },
          "usage": {
            "$ref": "#/components/schemas/EmbeddingCallUsage"
          }
        },
        "required": [
          "model",
          "target",
          "similarity",
          "scores",
          "usage"
        ],
        "title": "PlaygroundSimilarity",
        "type": "object"
      },
      "PlaygroundVector": {
        "properties": {
          "embedding": {
            "items": {
              "type": "number"
            },
            "title": "Embedding",
            "type": "array"
          },
          "index": {
            "title": "Index",
            "type": "integer"
          },
          "truncated": {
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "index",
          "embedding",
          "truncated"
        ],
        "title": "PlaygroundVector",
        "type": "object"
      },
      "PlaygroundVectors": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PlaygroundVector"
            },
            "title": "Data",
            "type": "array"
          },
          "effective_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Instruction"
          },
          "input_type": {
            "title": "Input Type",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "target": {
            "$ref": "#/components/schemas/EmbeddingTarget"
          },
          "usage": {
            "$ref": "#/components/schemas/EmbeddingCallUsage"
          }
        },
        "required": [
          "model",
          "target",
          "input_type",
          "data",
          "usage"
        ],
        "title": "PlaygroundVectors",
        "type": "object"
      },
      "PreferenceChange": {
        "properties": {
          "decision": {
            "enum": [
              "granted",
              "denied"
            ],
            "title": "Decision",
            "type": "string"
          }
        },
        "required": [
          "decision"
        ],
        "title": "PreferenceChange",
        "type": "object"
      },
      "Preferences": {
        "properties": {
          "advertising_consent": {
            "title": "Advertising Consent",
            "type": "string"
          },
          "notice_version": {
            "title": "Notice Version",
            "type": "string"
          },
          "product_analytics_consent": {
            "title": "Product Analytics Consent",
            "type": "string"
          }
        },
        "required": [
          "product_analytics_consent",
          "advertising_consent",
          "notice_version"
        ],
        "title": "Preferences",
        "type": "object"
      },
      "PreviewRequest": {
        "properties": {
          "category_from_answer": {
            "default": false,
            "title": "Category From Answer",
            "type": "boolean"
          },
          "invalid_row_policy": {
            "default": "fail",
            "enum": [
              "fail",
              "skip"
            ],
            "title": "Invalid Row Policy",
            "type": "string"
          },
          "mapping": {
            "additionalProperties": true,
            "title": "Mapping",
            "type": "object"
          },
          "tags_from_answer": {
            "default": false,
            "title": "Tags From Answer",
            "type": "boolean"
          }
        },
        "required": [
          "mapping"
        ],
        "title": "PreviewRequest",
        "type": "object"
      },
      "PricingEstimate": {
        "properties": {
          "as_of": {
            "format": "date-time",
            "title": "As Of",
            "type": "string"
          },
          "assumptions": {
            "items": {
              "type": "string"
            },
            "title": "Assumptions",
            "type": "array"
          },
          "authorization_ceiling": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Authorization Ceiling"
          },
          "confidence": {
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "title": "Confidence",
            "type": "string"
          },
          "duration_components": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DurationComponents"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected"
          },
          "free": {
            "title": "Free",
            "type": "boolean"
          },
          "range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EstimateRange"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate_basis": {
            "enum": [
              "platform-default-rate",
              "provider-rate-at-estimate-time",
              "highest-of-multiple-provider-rates-at-estimate-time"
            ],
            "title": "Rate Basis",
            "type": "string"
          },
          "rate_credits_per_minute": {
            "title": "Rate Credits Per Minute",
            "type": "number"
          },
          "source": {
            "enum": [
              "llmfit",
              "model",
              "observed"
            ],
            "title": "Source",
            "type": "string"
          },
          "unit": {
            "const": "credits",
            "default": "credits",
            "title": "Unit",
            "type": "string"
          }
        },
        "required": [
          "expected",
          "range",
          "source",
          "confidence",
          "rate_credits_per_minute",
          "rate_basis",
          "free",
          "as_of",
          "assumptions"
        ],
        "title": "PricingEstimate",
        "type": "object"
      },
      "PricingModel": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "model_id": {
            "title": "Model Id",
            "type": "string"
          }
        },
        "required": [
          "model_id",
          "display_name"
        ],
        "title": "PricingModel",
        "type": "object"
      },
      "PricingModels": {
        "properties": {
          "models": {
            "items": {
              "$ref": "#/components/schemas/PricingModel"
            },
            "title": "Models",
            "type": "array"
          }
        },
        "required": [
          "models"
        ],
        "title": "PricingModels",
        "type": "object"
      },
      "PricingRequest": {
        "properties": {
          "kind": {
            "enum": [
              "inference",
              "fine_tune"
            ],
            "title": "Kind",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "workload": {
            "$ref": "#/components/schemas/Workload"
          }
        },
        "required": [
          "kind",
          "model"
        ],
        "title": "PricingRequest",
        "type": "object"
      },
      "ProfileUpdate": {
        "properties": {
          "name": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "ProfileUpdate",
        "type": "object"
      },
      "ProfileUpdated": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "name"
        ],
        "title": "ProfileUpdated",
        "type": "object"
      },
      "ProjectBody": {
        "properties": {
          "archived_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "title": "Capabilities",
            "type": "array"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "disable_training": {
            "title": "Disable Training",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "inference_save_percent": {
            "title": "Inference Save Percent",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "owner_slug": {
            "title": "Owner Slug",
            "type": "string"
          },
          "presentation_key": {
            "title": "Presentation Key",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "type",
          "owner_slug",
          "inference_save_percent",
          "created_at",
          "disable_training",
          "presentation_key",
          "capabilities"
        ],
        "title": "ProjectBody",
        "type": "object"
      },
      "ProjectCapabilitiesResponse": {
        "properties": {
          "types": {
            "items": {
              "$ref": "#/components/schemas/ProjectTypeCapabilityRead"
            },
            "title": "Types",
            "type": "array"
          },
          "version": {
            "default": 1,
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "types"
        ],
        "title": "ProjectCapabilitiesResponse",
        "type": "object"
      },
      "ProjectChanged": {
        "properties": {
          "project": {
            "$ref": "#/components/schemas/ProjectBody"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "project"
        ],
        "title": "ProjectChanged",
        "type": "object"
      },
      "ProjectCounts": {
        "properties": {
          "chats": {
            "default": 0,
            "title": "Chats",
            "type": "integer"
          },
          "datasets": {
            "default": 0,
            "title": "Datasets",
            "type": "integer"
          },
          "endpoints": {
            "default": 0,
            "title": "Endpoints",
            "type": "integer"
          },
          "examples": {
            "default": 0,
            "title": "Examples",
            "type": "integer"
          },
          "hosted_models": {
            "default": 0,
            "title": "Hosted Models",
            "type": "integer"
          },
          "jobs": {
            "default": 0,
            "title": "Jobs",
            "type": "integer"
          },
          "reviews": {
            "default": 0,
            "title": "Reviews",
            "type": "integer"
          }
        },
        "title": "ProjectCounts",
        "type": "object"
      },
      "ProjectCreate": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "inference_save_percent": {
            "default": 0.0,
            "title": "Inference Save Percent",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "type": {
            "default": "text",
            "enum": [
              "text",
              "embedding"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "ProjectCreate",
        "type": "object"
      },
      "ProjectDetail": {
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/ProjectDetailCounts"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectBody"
          }
        },
        "required": [
          "counts",
          "project"
        ],
        "title": "ProjectDetail",
        "type": "object"
      },
      "ProjectDetailCounts": {
        "properties": {
          "chats": {
            "title": "Chats",
            "type": "integer"
          },
          "datasets": {
            "title": "Datasets",
            "type": "integer"
          },
          "endpoints": {
            "title": "Endpoints",
            "type": "integer"
          },
          "examples": {
            "title": "Examples",
            "type": "integer"
          },
          "hosted_models": {
            "title": "Hosted Models",
            "type": "integer"
          },
          "reviews": {
            "title": "Reviews",
            "type": "integer"
          },
          "running_jobs": {
            "title": "Running Jobs",
            "type": "integer"
          }
        },
        "required": [
          "chats",
          "running_jobs",
          "hosted_models",
          "endpoints",
          "datasets",
          "examples",
          "reviews"
        ],
        "title": "ProjectDetailCounts",
        "type": "object"
      },
      "ProjectListItem": {
        "properties": {
          "archived_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "title": "Capabilities",
            "type": "array"
          },
          "counts": {
            "$ref": "#/components/schemas/ProjectCounts"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "disable_training": {
            "default": false,
            "title": "Disable Training",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "inference_save_percent": {
            "title": "Inference Save Percent",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "owner_slug": {
            "title": "Owner Slug",
            "type": "string"
          },
          "presentation_key": {
            "default": "text",
            "title": "Presentation Key",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "type",
          "owner_slug",
          "inference_save_percent",
          "created_at",
          "counts"
        ],
        "title": "ProjectListItem",
        "type": "object"
      },
      "ProjectListPage": {
        "properties": {
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectListItem"
            },
            "title": "Projects",
            "type": "array"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "projects"
        ],
        "title": "ProjectListPage",
        "type": "object"
      },
      "ProjectTypeCapabilityRead": {
        "properties": {
          "capabilities": {
            "items": {
              "type": "string"
            },
            "title": "Capabilities",
            "type": "array"
          },
          "creation": {
            "$ref": "#/components/schemas/ProjectTypeCreationRead"
          },
          "presentation_key": {
            "title": "Presentation Key",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "presentation_key",
          "capabilities",
          "creation"
        ],
        "title": "ProjectTypeCapabilityRead",
        "type": "object"
      },
      "ProjectTypeCreationRead": {
        "properties": {
          "available": {
            "title": "Available",
            "type": "boolean"
          },
          "reason_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason Code"
          }
        },
        "required": [
          "available"
        ],
        "title": "ProjectTypeCreationRead",
        "type": "object"
      },
      "ProjectUpdate": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "inference_save_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inference Save Percent"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "title": "ProjectUpdate",
        "type": "object"
      },
      "ProvisionedArtifactModelSource": {
        "properties": {
          "kind": {
            "const": "provisioned_artifact",
            "default": "provisioned_artifact",
            "title": "Kind",
            "type": "string"
          },
          "model_artifact_id": {
            "exclusiveMinimum": 0.0,
            "title": "Model Artifact Id",
            "type": "integer"
          }
        },
        "required": [
          "model_artifact_id"
        ],
        "title": "ProvisionedArtifactModelSource",
        "type": "object"
      },
      "RetrievalEventBatchRead": {
        "properties": {
          "created_count": {
            "title": "Created Count",
            "type": "integer"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/RetrievalEventCreatedRead"
            },
            "title": "Data",
            "type": "array"
          },
          "object": {
            "default": "list",
            "title": "Object",
            "type": "string"
          }
        },
        "required": [
          "data",
          "created_count"
        ],
        "title": "RetrievalEventBatchRead",
        "type": "object"
      },
      "RetrievalEventBatchWrite": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/RetrievalEventWrite"
            },
            "maxItems": 50,
            "minItems": 1,
            "title": "Events",
            "type": "array"
          }
        },
        "required": [
          "events"
        ],
        "title": "RetrievalEventBatchWrite",
        "type": "object"
      },
      "RetrievalEventCreatedRead": {
        "properties": {
          "created": {
            "title": "Created",
            "type": "boolean"
          },
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "object": {
            "default": "retrieval_event",
            "title": "Object",
            "type": "string"
          },
          "received_at": {
            "title": "Received At",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "state": {
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "state",
          "revision",
          "received_at",
          "created"
        ],
        "title": "RetrievalEventCreatedRead",
        "type": "object"
      },
      "RetrievalEventDecisionRead": {
        "properties": {
          "available_example_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Available Example Ids"
          },
          "decided_at": {
            "title": "Decided At",
            "type": "string"
          },
          "example_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example Ids"
          },
          "hard_negative_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hard Negative Rank"
          },
          "has_negative": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Negative"
          },
          "positive_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Positive Count"
          },
          "positive_ranks": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Positive Ranks"
          },
          "state": {
            "enum": [
              "promoted",
              "skipped"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "state",
          "decided_at"
        ],
        "title": "RetrievalEventDecisionRead",
        "type": "object"
      },
      "RetrievalEventDetailRead": {
        "properties": {
          "decision": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RetrievalEventDecisionRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/RetrievalEventMetadataRead"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "object": {
            "default": "retrieval_event",
            "title": "Object",
            "type": "string"
          },
          "query": {
            "title": "Query",
            "type": "string"
          },
          "received_at": {
            "title": "Received At",
            "type": "string"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/RetrievalResultRead"
            },
            "title": "Results",
            "type": "array"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "state": {
            "enum": [
              "unreviewed",
              "promoted",
              "skipped"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "model",
          "query",
          "metadata",
          "results",
          "state",
          "revision",
          "received_at",
          "decision"
        ],
        "title": "RetrievalEventDetailRead",
        "type": "object"
      },
      "RetrievalEventListItemRead": {
        "properties": {
          "decided_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "promoted_example_count": {
            "title": "Promoted Example Count",
            "type": "integer"
          },
          "query_preview": {
            "title": "Query Preview",
            "type": "string"
          },
          "received_at": {
            "title": "Received At",
            "type": "string"
          },
          "result_count": {
            "title": "Result Count",
            "type": "integer"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "state": {
            "enum": [
              "unreviewed",
              "promoted",
              "skipped"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "model",
          "query_preview",
          "result_count",
          "state",
          "revision",
          "promoted_example_count",
          "received_at",
          "decided_at"
        ],
        "title": "RetrievalEventListItemRead",
        "type": "object"
      },
      "RetrievalEventMetadataRead": {
        "properties": {
          "model_revision": {
            "title": "Model Revision",
            "type": "integer"
          },
          "occurred_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Occurred At"
          },
          "search_target": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Search Target"
          }
        },
        "required": [
          "model_revision"
        ],
        "title": "RetrievalEventMetadataRead",
        "type": "object"
      },
      "RetrievalEventMetadataWrite": {
        "properties": {
          "model_revision": {
            "minimum": 1,
            "title": "Model Revision",
            "type": "integer"
          },
          "occurred_at": {
            "format": "date-time",
            "title": "Occurred At",
            "type": "string"
          },
          "search_target": {
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
            "title": "Search Target",
            "type": "string"
          }
        },
        "title": "RetrievalEventMetadataWrite",
        "type": "object"
      },
      "RetrievalEventPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/RetrievalEventListItemRead"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "next_cursor",
          "total_count"
        ],
        "title": "RetrievalEventPage",
        "type": "object"
      },
      "RetrievalEventPromoteWrite": {
        "properties": {
          "expected_revision": {
            "minimum": 1,
            "title": "Expected Revision",
            "type": "integer"
          },
          "kept_ranks": {
            "items": {
              "maximum": 20,
              "minimum": 1,
              "type": "integer"
            },
            "maxItems": 20,
            "title": "Kept Ranks",
            "type": "array"
          },
          "negative_mode": {
            "default": "auto",
            "enum": [
              "auto",
              "none",
              "rank",
              "custom"
            ],
            "title": "Negative Mode",
            "type": "string"
          },
          "negative_rank": {
            "maximum": 20,
            "minimum": 1,
            "title": "Negative Rank",
            "type": "integer"
          },
          "negative_text": {
            "title": "Negative Text",
            "type": "string"
          },
          "positive_text": {
            "title": "Positive Text",
            "type": "string"
          }
        },
        "required": [
          "expected_revision"
        ],
        "title": "RetrievalEventPromoteWrite",
        "type": "object"
      },
      "RetrievalEventPromotionRead": {
        "properties": {
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "example_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Example Ids",
            "type": "array"
          },
          "hard_negative_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hard Negative Rank"
          },
          "has_negative": {
            "title": "Has Negative",
            "type": "boolean"
          },
          "object": {
            "default": "retrieval_event_promotion",
            "title": "Object",
            "type": "string"
          },
          "positive_count": {
            "title": "Positive Count",
            "type": "integer"
          },
          "positive_ranks": {
            "items": {
              "type": "integer"
            },
            "title": "Positive Ranks",
            "type": "array"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "state": {
            "const": "promoted",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "state",
          "revision",
          "example_ids",
          "positive_ranks",
          "hard_negative_rank",
          "positive_count",
          "has_negative"
        ],
        "title": "RetrievalEventPromotionRead",
        "type": "object"
      },
      "RetrievalEventStateRead": {
        "properties": {
          "decided_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "object": {
            "default": "retrieval_event_state",
            "title": "Object",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "state": {
            "enum": [
              "unreviewed",
              "skipped"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "state",
          "revision",
          "decided_at"
        ],
        "title": "RetrievalEventStateRead",
        "type": "object"
      },
      "RetrievalEventStateWrite": {
        "properties": {
          "expected_revision": {
            "minimum": 1,
            "title": "Expected Revision",
            "type": "integer"
          },
          "state": {
            "enum": [
              "skipped",
              "unreviewed"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "expected_revision",
          "state"
        ],
        "title": "RetrievalEventStateWrite",
        "type": "object"
      },
      "RetrievalEventWrite": {
        "properties": {
          "event_id": {
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
            "title": "Event Id",
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/RetrievalEventMetadataWrite"
          },
          "model": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "type": "string"
          },
          "query": {
            "title": "Query",
            "type": "string"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/RetrievalResultWrite"
            },
            "maxItems": 20,
            "minItems": 1,
            "title": "Results",
            "type": "array"
          }
        },
        "required": [
          "event_id",
          "model",
          "query",
          "results"
        ],
        "title": "RetrievalEventWrite",
        "type": "object"
      },
      "RetrievalIngestLimitsRead": {
        "properties": {
          "events_per_batch": {
            "title": "Events Per Batch",
            "type": "integer"
          },
          "events_per_utc_minute": {
            "title": "Events Per Utc Minute",
            "type": "integer"
          },
          "requests_per_utc_minute": {
            "title": "Requests Per Utc Minute",
            "type": "integer"
          },
          "results_per_event": {
            "title": "Results Per Event",
            "type": "integer"
          }
        },
        "required": [
          "requests_per_utc_minute",
          "events_per_utc_minute",
          "events_per_batch",
          "results_per_event"
        ],
        "title": "RetrievalIngestLimitsRead",
        "type": "object"
      },
      "RetrievalResultMetadataRead": {
        "properties": {
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "source_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Uri"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "title": "RetrievalResultMetadataRead",
        "type": "object"
      },
      "RetrievalResultMetadataWrite": {
        "properties": {
          "external_id": {
            "title": "External Id",
            "type": "string"
          },
          "score": {
            "title": "Score",
            "type": "number"
          },
          "source_uri": {
            "title": "Source Uri",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "title": "RetrievalResultMetadataWrite",
        "type": "object"
      },
      "RetrievalResultRead": {
        "properties": {
          "metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RetrievalResultMetadataRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "rank": {
            "title": "Rank",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "rank",
          "text"
        ],
        "title": "RetrievalResultRead",
        "type": "object"
      },
      "RetrievalResultWrite": {
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/RetrievalResultMetadataWrite"
          },
          "rank": {
            "maximum": 20,
            "minimum": 1,
            "title": "Rank",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "rank",
          "text"
        ],
        "title": "RetrievalResultWrite",
        "type": "object"
      },
      "RetrievalSettingsRead": {
        "properties": {
          "ingest_limits": {
            "$ref": "#/components/schemas/RetrievalIngestLimitsRead"
          },
          "object": {
            "default": "retrieval_settings",
            "title": "Object",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "storage": {
            "$ref": "#/components/schemas/RetrievalStorageRead"
          },
          "workflow": {
            "$ref": "#/components/schemas/RetrievalWorkflowRead"
          }
        },
        "required": [
          "revision",
          "workflow",
          "storage",
          "ingest_limits"
        ],
        "title": "RetrievalSettingsRead",
        "type": "object"
      },
      "RetrievalStorageRead": {
        "properties": {
          "max_retained_events": {
            "title": "Max Retained Events",
            "type": "integer"
          },
          "max_retained_text_bytes": {
            "title": "Max Retained Text Bytes",
            "type": "integer"
          },
          "retained_text_bytes": {
            "title": "Retained Text Bytes",
            "type": "integer"
          }
        },
        "required": [
          "retained_text_bytes",
          "max_retained_events",
          "max_retained_text_bytes"
        ],
        "title": "RetrievalStorageRead",
        "type": "object"
      },
      "RetrievalWorkflowRead": {
        "properties": {
          "promoted_events": {
            "title": "Promoted Events",
            "type": "integer"
          },
          "retained_events": {
            "title": "Retained Events",
            "type": "integer"
          },
          "skipped_events": {
            "title": "Skipped Events",
            "type": "integer"
          },
          "training_examples": {
            "title": "Training Examples",
            "type": "integer"
          },
          "training_examples_added": {
            "title": "Training Examples Added",
            "type": "integer"
          },
          "waiting_events": {
            "title": "Waiting Events",
            "type": "integer"
          }
        },
        "required": [
          "waiting_events",
          "promoted_events",
          "skipped_events",
          "training_examples_added",
          "training_examples",
          "retained_events"
        ],
        "title": "RetrievalWorkflowRead",
        "type": "object"
      },
      "SavedModelCreate": {
        "properties": {
          "evaluation_acknowledged": {
            "default": false,
            "title": "Evaluation Acknowledged",
            "type": "boolean"
          },
          "evaluation_receipt_sha256": {
            "anyOf": [
              {
                "pattern": "^[0-9a-f]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Receipt Sha256"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "provisioned_artifact": "#/components/schemas/ProvisionedArtifactModelSource",
                    "training_job": "#/components/schemas/TrainingJobModelSource"
                  },
                  "propertyName": "kind"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TrainingJobModelSource"
                  },
                  {
                    "$ref": "#/components/schemas/ProvisionedArtifactModelSource"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "task": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelTask"
              },
              {
                "type": "null"
              }
            ]
          },
          "training_job_id": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          }
        },
        "required": [
          "name",
          "slug"
        ],
        "title": "SavedModelCreate",
        "type": "object"
      },
      "SavedModelList": {
        "$ref": "#/components/schemas/SavedModelPage",
        "title": "SavedModelList"
      },
      "SavedModelPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/SavedModelRead"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data"
        ],
        "title": "SavedModelPage",
        "type": "object"
      },
      "SavedModelRead": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "base_model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Model Name"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "deprecated": {
            "default": false,
            "title": "Deprecated",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "is_public": {
            "title": "Is Public",
            "type": "boolean"
          },
          "model_artifact_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Artifact Id"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "project_id": {
            "title": "Project Id",
            "type": "integer"
          },
          "public_extra_charge_percent": {
            "title": "Public Extra Charge Percent",
            "type": "number"
          },
          "readiness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddingReadinessRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "default": 1,
            "title": "Revision",
            "type": "integer"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "source_kind": {
            "default": "training_job",
            "title": "Source Kind",
            "type": "string"
          },
          "target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddingTargetRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "task": {
            "default": "text_generation",
            "title": "Task",
            "type": "string"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          },
          "training_job_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Number"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "project_id",
          "name",
          "slug",
          "active",
          "is_public",
          "public_extra_charge_percent",
          "created_at",
          "updated_at"
        ],
        "title": "SavedModelRead",
        "type": "object"
      },
      "SavedModelShareCreate": {
        "properties": {
          "extra_charge_percent": {
            "default": 0.0,
            "title": "Extra Charge Percent",
            "type": "number"
          },
          "payer": {
            "$ref": "#/components/schemas/InferencePayer"
          },
          "user_slug": {
            "title": "User Slug",
            "type": "string"
          }
        },
        "required": [
          "user_slug",
          "payer"
        ],
        "title": "SavedModelShareCreate",
        "type": "object"
      },
      "SavedModelShareList": {
        "items": {
          "$ref": "#/components/schemas/SavedModelShareRead"
        },
        "title": "SavedModelShareList",
        "type": "array"
      },
      "SavedModelShareRead": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "extra_charge_percent": {
            "title": "Extra Charge Percent",
            "type": "number"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "payer": {
            "$ref": "#/components/schemas/InferencePayer"
          },
          "saved_model_id": {
            "title": "Saved Model Id",
            "type": "integer"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          },
          "user_slug": {
            "title": "User Slug",
            "type": "string"
          }
        },
        "required": [
          "id",
          "saved_model_id",
          "user_id",
          "user_slug",
          "payer",
          "extra_charge_percent",
          "created_at"
        ],
        "title": "SavedModelShareRead",
        "type": "object"
      },
      "SavedModelTargetCompatibilityRead": {
        "properties": {
          "candidate_target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddingTargetRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "compatible": {
            "title": "Compatible",
            "type": "boolean"
          },
          "current_target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddingTargetRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "model_id": {
            "title": "Model Id",
            "type": "integer"
          },
          "reason_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason Code"
          },
          "requires_reindex_acknowledgement": {
            "title": "Requires Reindex Acknowledgement",
            "type": "boolean"
          },
          "task": {
            "title": "Task",
            "type": "string"
          }
        },
        "required": [
          "model_id",
          "task",
          "compatible",
          "requires_reindex_acknowledgement"
        ],
        "title": "SavedModelTargetCompatibilityRead",
        "type": "object"
      },
      "SavedModelUpdate": {
        "properties": {
          "evaluation_acknowledged": {
            "default": false,
            "title": "Evaluation Acknowledged",
            "type": "boolean"
          },
          "evaluation_receipt_sha256": {
            "anyOf": [
              {
                "pattern": "^[0-9a-f]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Receipt Sha256"
          },
          "expected_revision": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Revision"
          },
          "index_compatibility_acknowledged": {
            "default": false,
            "title": "Index Compatibility Acknowledged",
            "type": "boolean"
          },
          "is_public": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Public"
          },
          "public_extra_charge_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Extra Charge Percent"
          },
          "source": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "provisioned_artifact": "#/components/schemas/ProvisionedArtifactModelSource",
                    "training_job": "#/components/schemas/TrainingJobModelSource"
                  },
                  "propertyName": "kind"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TrainingJobModelSource"
                  },
                  {
                    "$ref": "#/components/schemas/ProvisionedArtifactModelSource"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "training_job_id": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          }
        },
        "title": "SavedModelUpdate",
        "type": "object"
      },
      "SearchCorpus": {
        "properties": {
          "example_count": {
            "title": "Example Count",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "selection_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selection Sha256"
          }
        },
        "required": [
          "id",
          "name",
          "example_count"
        ],
        "title": "SearchCorpus",
        "type": "object"
      },
      "SearchCorpusPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/SearchCorpus"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data"
        ],
        "title": "SearchCorpusPage",
        "type": "object"
      },
      "SearchIndex": {
        "properties": {
          "base_model_artifact_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Model Artifact Id"
          },
          "catalog_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Catalog Id"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "credit_ceiling": {
            "title": "Credit Ceiling",
            "type": "string"
          },
          "dataset_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Id"
          },
          "dataset_version_id": {
            "title": "Dataset Version Id",
            "type": "integer"
          },
          "dimensions": {
            "title": "Dimensions",
            "type": "integer"
          },
          "embedded_count": {
            "title": "Embedded Count",
            "type": "integer"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "max_input_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Input Tokens"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "passage_count": {
            "title": "Passage Count",
            "type": "integer"
          },
          "query_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query Instruction"
          },
          "ready_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ready At"
          },
          "saved_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Saved Model Id"
          },
          "selection_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selection Sha256"
          },
          "spent_credits": {
            "title": "Spent Credits",
            "type": "string"
          },
          "stale": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stale"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "dataset_version_id",
          "saved_model_id",
          "dimensions",
          "passage_count",
          "embedded_count",
          "credit_ceiling",
          "spent_credits",
          "created_at"
        ],
        "title": "SearchIndex",
        "type": "object"
      },
      "SearchIndexCreate": {
        "properties": {
          "credit_ceiling": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,13}0*$)\\d{0,6}\\.\\d{0,6}0*$)",
                "type": "string"
              }
            ],
            "title": "Credit Ceiling"
          },
          "dataset_id": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Id"
          },
          "dataset_version_id": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Version Id"
          },
          "model": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "type": "string"
          }
        },
        "required": [
          "model",
          "credit_ceiling"
        ],
        "title": "SearchIndexCreate",
        "type": "object"
      },
      "SearchIndexPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/SearchIndex"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data"
        ],
        "title": "SearchIndexPage",
        "type": "object"
      },
      "SearchLimits": {
        "properties": {
          "max_credit_ceiling": {
            "title": "Max Credit Ceiling",
            "type": "string"
          },
          "max_index_passages": {
            "title": "Max Index Passages",
            "type": "integer"
          },
          "max_top_k": {
            "title": "Max Top K",
            "type": "integer"
          },
          "project_vector_bytes_quota": {
            "title": "Project Vector Bytes Quota",
            "type": "integer"
          },
          "project_vector_bytes_used": {
            "title": "Project Vector Bytes Used",
            "type": "integer"
          }
        },
        "required": [
          "max_credit_ceiling",
          "max_index_passages",
          "project_vector_bytes_quota",
          "project_vector_bytes_used",
          "max_top_k"
        ],
        "title": "SearchLimits",
        "type": "object"
      },
      "SearchQuery": {
        "properties": {
          "query": {
            "minLength": 1,
            "title": "Query",
            "type": "string"
          },
          "top_k": {
            "default": 10,
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Top K",
            "type": "integer"
          }
        },
        "required": [
          "query"
        ],
        "title": "SearchQuery",
        "type": "object"
      },
      "SearchQueryResult": {
        "properties": {
          "index_id": {
            "title": "Index Id",
            "type": "integer"
          },
          "query_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query Instruction"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/SearchResult"
            },
            "title": "Results",
            "type": "array"
          },
          "usage": {
            "$ref": "#/components/schemas/EmbeddingCallUsage"
          }
        },
        "required": [
          "index_id",
          "results",
          "usage"
        ],
        "title": "SearchQueryResult",
        "type": "object"
      },
      "SearchResult": {
        "properties": {
          "example_id": {
            "title": "Example Id",
            "type": "integer"
          },
          "ordinal": {
            "title": "Ordinal",
            "type": "integer"
          },
          "rank": {
            "title": "Rank",
            "type": "integer"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "score": {
            "title": "Score",
            "type": "number"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "truncated": {
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "rank",
          "ordinal",
          "text",
          "example_id",
          "role",
          "truncated",
          "score"
        ],
        "title": "SearchResult",
        "type": "object"
      },
      "SearchVersion": {
        "properties": {
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "dataset_id": {
            "title": "Dataset Id",
            "type": "integer"
          },
          "example_count": {
            "title": "Example Count",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "dataset_id",
          "example_count",
          "created_at"
        ],
        "title": "SearchVersion",
        "type": "object"
      },
      "SearchVersionPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/SearchVersion"
            },
            "title": "Data",
            "type": "array"
          },
          "limits": {
            "$ref": "#/components/schemas/SearchLimits"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "limits"
        ],
        "title": "SearchVersionPage",
        "type": "object"
      },
      "SettingBound": {
        "properties": {
          "choices": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Choices"
          },
          "default": {
            "title": "Default"
          },
          "integer": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integer"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          },
          "max_length": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Length"
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min"
          },
          "text": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          }
        },
        "title": "SettingBound",
        "type": "object"
      },
      "SimilarityRequest": {
        "properties": {
          "documents": {
            "items": {
              "type": "string"
            },
            "maxItems": 8,
            "minItems": 1,
            "title": "Documents",
            "type": "array"
          },
          "model": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "type": "string"
          },
          "source": {
            "minLength": 1,
            "title": "Source",
            "type": "string"
          }
        },
        "required": [
          "model",
          "source",
          "documents"
        ],
        "title": "SimilarityRequest",
        "type": "object"
      },
      "StatusOnly": {
        "properties": {
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "StatusOnly",
        "type": "object"
      },
      "StreamOptions": {
        "properties": {
          "include_usage": {
            "default": false,
            "title": "Include Usage",
            "type": "boolean"
          }
        },
        "title": "StreamOptions",
        "type": "object"
      },
      "TagRead": {
        "properties": {
          "chat_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Count"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "TagRead",
        "type": "object"
      },
      "TextBaseModel": {
        "properties": {
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "hosted_lora": {
            "title": "Hosted Lora",
            "type": "boolean"
          },
          "max_context_tokens": {
            "title": "Max Context Tokens",
            "type": "integer"
          },
          "model_id": {
            "title": "Model Id",
            "type": "string"
          },
          "size_label": {
            "title": "Size Label",
            "type": "string"
          }
        },
        "required": [
          "model_id",
          "display_name",
          "size_label",
          "hosted_lora",
          "max_context_tokens"
        ],
        "title": "TextBaseModel",
        "type": "object"
      },
      "Tool": {
        "properties": {
          "function": {
            "$ref": "#/components/schemas/FunctionDefinition"
          },
          "type": {
            "const": "function",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "function"
        ],
        "title": "Tool",
        "type": "object"
      },
      "ToolCall": {
        "properties": {
          "function": {
            "$ref": "#/components/schemas/FunctionCall"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "function",
            "default": "function",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "function"
        ],
        "title": "ToolCall",
        "type": "object"
      },
      "TrainingAttempt": {
        "properties": {
          "attempt_number": {
            "title": "Attempt Number",
            "type": "integer"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "failure_category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Category"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "has_log": {
            "title": "Has Log",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "log_complete": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Log Complete"
          },
          "log_recovered": {
            "title": "Log Recovered",
            "type": "boolean"
          },
          "log_size": {
            "title": "Log Size",
            "type": "integer"
          },
          "log_truncated": {
            "title": "Log Truncated",
            "type": "boolean"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "training_started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Started At"
          }
        },
        "required": [
          "id",
          "attempt_number",
          "status",
          "has_log",
          "log_size",
          "log_truncated",
          "log_recovered"
        ],
        "title": "TrainingAttempt",
        "type": "object"
      },
      "TrainingChatMessage": {
        "properties": {
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "order",
          "role",
          "text"
        ],
        "title": "TrainingChatMessage",
        "type": "object"
      },
      "TrainingConfigurationPreview": {
        "properties": {
          "base_load_precision": {
            "enum": [
              "4bit",
              "8bit"
            ],
            "title": "Base Load Precision",
            "type": "string"
          },
          "warmup_source": {
            "enum": [
              "automatic",
              "custom"
            ],
            "title": "Warmup Source",
            "type": "string"
          },
          "warmup_steps": {
            "minimum": 0.0,
            "title": "Warmup Steps",
            "type": "integer"
          }
        },
        "required": [
          "base_load_precision",
          "warmup_steps",
          "warmup_source"
        ],
        "title": "TrainingConfigurationPreview",
        "type": "object"
      },
      "TrainingDatasetChat": {
        "properties": {
          "chat_id": {
            "title": "Chat Id",
            "type": "integer"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/TrainingChatMessage"
            },
            "title": "Messages",
            "type": "array"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "required": [
          "chat_id",
          "messages"
        ],
        "title": "TrainingDatasetChat",
        "type": "object"
      },
      "TrainingDatasetPage": {
        "properties": {
          "has_more": {
            "title": "Has More",
            "type": "boolean"
          },
          "items": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Items",
            "type": "array"
          },
          "limit": {
            "title": "Limit",
            "type": "integer"
          },
          "next_offset": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Offset"
          },
          "offset": {
            "title": "Offset",
            "type": "integer"
          },
          "search_applied": {
            "title": "Search Applied",
            "type": "boolean"
          },
          "split": {
            "title": "Split",
            "type": "string"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          },
          "unit": {
            "title": "Unit",
            "type": "string"
          }
        },
        "required": [
          "unit",
          "items",
          "offset",
          "limit",
          "has_more",
          "search_applied",
          "split"
        ],
        "title": "TrainingDatasetPage",
        "type": "object"
      },
      "TrainingDownloadMetadata": {
        "properties": {
          "files": {
            "items": {
              "$ref": "#/components/schemas/DownloadFile"
            },
            "title": "Files",
            "type": "array"
          },
          "format": {
            "title": "Format",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "integer"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          }
        },
        "required": [
          "job_id",
          "format",
          "size_bytes",
          "files"
        ],
        "title": "TrainingDownloadMetadata",
        "type": "object"
      },
      "TrainingJobCreate": {
        "properties": {
          "base_load_precision": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Base Load Precision"
          },
          "dataset_tags": {
            "default": [],
            "items": {},
            "title": "Dataset Tags",
            "type": "array"
          },
          "early_stopping_patience": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Early Stopping Patience"
          },
          "eval_accumulation_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Eval Accumulation Steps"
          },
          "evaluation_cadence": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "events": "#/components/schemas/EvaluationCadenceEvents",
                    "fixed_interval": "#/components/schemas/EvaluationCadenceFixedInterval"
                  },
                  "propertyName": "kind"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/EvaluationCadenceEvents"
                  },
                  {
                    "$ref": "#/components/schemas/EvaluationCadenceFixedInterval"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Evaluation Cadence"
          },
          "fp16_full_eval": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Fp16 Full Eval"
          },
          "gradient_accumulation_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Gradient Accumulation Steps"
          },
          "learning_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Learning Rate"
          },
          "lora_alpha": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Lora Alpha"
          },
          "lora_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Lora Rank"
          },
          "loss_mask": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Loss Mask"
          },
          "max_seq_length": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Max Seq Length"
          },
          "max_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Max Steps"
          },
          "model_name": {
            "default": "ReOpenly/Qwen3.5-9B",
            "title": "Model Name",
            "type": "string"
          },
          "num_train_epochs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Num Train Epochs"
          },
          "per_device_eval_batch_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Per Device Eval Batch Size"
          },
          "per_device_train_batch_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Per Device Train Batch Size"
          },
          "system_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "System Prompt"
          },
          "warmup_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Warmup Steps"
          }
        },
        "title": "TrainingJobCreate",
        "type": "object"
      },
      "TrainingJobModelSource": {
        "properties": {
          "kind": {
            "const": "training_job",
            "default": "training_job",
            "title": "Kind",
            "type": "string"
          },
          "training_job_id": {
            "exclusiveMinimum": 0.0,
            "title": "Training Job Id",
            "type": "integer"
          }
        },
        "required": [
          "training_job_id"
        ],
        "title": "TrainingJobModelSource",
        "type": "object"
      },
      "TrainingJobPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/TrainingJobRead"
            },
            "title": "Data",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "required": [
          "data"
        ],
        "title": "TrainingJobPage",
        "type": "object"
      },
      "TrainingJobRead": {
        "properties": {
          "billing": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Billing"
          },
          "cancel_requested_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cancel Requested At"
          },
          "cost_credits": {
            "default": 0.0,
            "title": "Cost Credits",
            "type": "number"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "dataset": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset"
          },
          "dataset_tags": {
            "items": {
              "$ref": "#/components/schemas/TagRead"
            },
            "title": "Dataset Tags",
            "type": "array"
          },
          "dataset_version_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Version Id"
          },
          "deprecated": {
            "readOnly": true,
            "title": "Deprecated",
            "type": "boolean"
          },
          "dispatch_after_preparation": {
            "default": true,
            "title": "Dispatch After Preparation",
            "type": "boolean"
          },
          "dispatch_generation": {
            "default": 0,
            "title": "Dispatch Generation",
            "type": "integer"
          },
          "dispatch_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dispatch Status"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "evaluation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation"
          },
          "execution_mode": {
            "enum": [
              "train",
              "prepare_only"
            ],
            "readOnly": true,
            "title": "Execution Mode",
            "type": "string"
          },
          "failure_category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Category"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "failure_diagnostics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Diagnostics"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "hardware": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hardware"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "last_updated_at": {
            "format": "date-time",
            "title": "Last Updated At",
            "type": "string"
          },
          "learning_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Learning Rate"
          },
          "load_in_16bit": {
            "title": "Load In 16Bit",
            "type": "boolean"
          },
          "load_in_4bit": {
            "title": "Load In 4Bit",
            "type": "boolean"
          },
          "load_in_8bit": {
            "title": "Load In 8Bit",
            "type": "boolean"
          },
          "loss_mask": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Loss Mask"
          },
          "max_seq_length": {
            "title": "Max Seq Length",
            "type": "integer"
          },
          "max_steps": {
            "title": "Max Steps",
            "type": "integer"
          },
          "metrics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metrics"
          },
          "metrics_summary": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metrics Summary"
          },
          "model_available": {
            "default": false,
            "title": "Model Available",
            "type": "boolean"
          },
          "model_name": {
            "title": "Model Name",
            "type": "string"
          },
          "num_train_epochs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Num Train Epochs"
          },
          "number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "outcome": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "pause": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pause"
          },
          "pause_requested_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pause Requested At"
          },
          "planned_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Planned Steps"
          },
          "preparation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Preparation"
          },
          "progress": {
            "default": 0.0,
            "title": "Progress",
            "type": "number"
          },
          "project_id": {
            "title": "Project Id",
            "type": "integer"
          },
          "quality": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Quality"
          },
          "ran_on_multiple_machines": {
            "default": false,
            "title": "Ran On Multiple Machines",
            "type": "boolean"
          },
          "resume_checkpoint_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resume Checkpoint Path"
          },
          "retry_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retry Count"
          },
          "retry_requested_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retry Requested At"
          },
          "status": {
            "$ref": "#/components/schemas/TrainingJobStatus"
          },
          "system_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "System Prompt"
          },
          "task": {
            "$ref": "#/components/schemas/ModelTask",
            "default": "text_generation"
          },
          "timing": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timing"
          },
          "training_config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Config"
          },
          "training_config_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Config Version"
          },
          "training_input_fingerprint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Input Fingerprint"
          },
          "training_profile_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Profile Id"
          },
          "training_profile_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Profile Version"
          },
          "training_selection_summary": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Selection Summary"
          },
          "training_started": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Started"
          }
        },
        "required": [
          "id",
          "project_id",
          "status",
          "created_at",
          "last_updated_at",
          "dataset_tags",
          "model_name",
          "max_seq_length",
          "load_in_4bit",
          "load_in_8bit",
          "load_in_16bit",
          "max_steps",
          "execution_mode",
          "deprecated"
        ],
        "title": "TrainingJobRead",
        "type": "object"
      },
      "TrainingJobStatus": {
        "enum": [
          "pending",
          "running",
          "failed",
          "succeeded",
          "cancel_requested",
          "cancelled",
          "pause_requested",
          "paused"
        ],
        "title": "TrainingJobStatus",
        "type": "string"
      },
      "TrainingLimit": {
        "properties": {
          "choices": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Choices"
          },
          "custom_min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Min"
          },
          "default": {
            "title": "Default"
          },
          "default_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Mode"
          },
          "events": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Events"
          },
          "fixed_interval": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fixed Interval"
          },
          "integer": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integer"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          },
          "max_length": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Length"
          },
          "max_resolved_events": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Resolved Events"
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min"
          },
          "text": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          }
        },
        "title": "TrainingLimit",
        "type": "object"
      },
      "TrainingMessageEstimate": {
        "properties": {
          "authorization_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Authorization Credits"
          },
          "authorization_gpu_minutes": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Authorization Gpu Minutes"
          },
          "chat_count": {
            "title": "Chat Count",
            "type": "integer"
          },
          "configuration_preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrainingConfigurationPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "credits_per_minute": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Credits Per Minute"
          },
          "duration_components": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Components"
          },
          "duration_estimator_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Estimator Version"
          },
          "early_stopping_patience_max": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Early Stopping Patience Max"
          },
          "effective_batch_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Batch Size"
          },
          "estimated_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Credits"
          },
          "estimated_gpu_minutes": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Gpu Minutes"
          },
          "eval_examples": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eval Examples"
          },
          "evaluation_preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EvaluationAvailabilityPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "execution_limit_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution Limit Seconds"
          },
          "is_trainable": {
            "title": "Is Trainable",
            "type": "boolean"
          },
          "nonempty_text_messages": {
            "title": "Nonempty Text Messages",
            "type": "integer"
          },
          "num_train_epochs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Num Train Epochs"
          },
          "planned_steps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Planned Steps"
          },
          "selected_chats": {
            "title": "Selected Chats",
            "type": "integer"
          },
          "selected_messages": {
            "title": "Selected Messages",
            "type": "integer"
          },
          "steps_per_epoch": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Steps Per Epoch"
          },
          "train_examples": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Train Examples"
          },
          "trainable_chats": {
            "title": "Trainable Chats",
            "type": "integer"
          },
          "training_plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Plan"
          }
        },
        "required": [
          "count",
          "chat_count",
          "selected_messages",
          "selected_chats",
          "trainable_chats",
          "nonempty_text_messages",
          "is_trainable"
        ],
        "title": "TrainingMessageEstimate",
        "type": "object"
      },
      "TrainingProfileBounds": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "limits": {
            "additionalProperties": {
              "$ref": "#/components/schemas/TrainingLimit"
            },
            "title": "Limits",
            "type": "object"
          },
          "model_id": {
            "title": "Model Id",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "version",
          "model_id",
          "limits"
        ],
        "title": "TrainingProfileBounds",
        "type": "object"
      },
      "TrainingRetryEstimate": {
        "properties": {
          "available_credits": {
            "title": "Available Credits",
            "type": "number"
          },
          "checkpoint_available": {
            "title": "Checkpoint Available",
            "type": "boolean"
          },
          "checkpoint_step": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checkpoint Step"
          },
          "eligible": {
            "title": "Eligible",
            "type": "boolean"
          },
          "estimated_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Credits"
          },
          "frozen_input_fingerprint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Frozen Input Fingerprint"
          },
          "retry_count": {
            "title": "Retry Count",
            "type": "integer"
          }
        },
        "required": [
          "eligible",
          "available_credits",
          "retry_count",
          "checkpoint_available"
        ],
        "title": "TrainingRetryEstimate",
        "type": "object"
      },
      "TrainingRetryRequest": {
        "properties": {
          "resume_from_checkpoint": {
            "default": false,
            "title": "Resume From Checkpoint",
            "type": "boolean"
          }
        },
        "title": "TrainingRetryRequest",
        "type": "object"
      },
      "Usage": {
        "properties": {
          "cached_tokens": {
            "default": 0,
            "title": "Cached Tokens",
            "type": "integer"
          },
          "completion_tokens": {
            "default": 0,
            "title": "Completion Tokens",
            "type": "integer"
          },
          "prompt_tokens": {
            "default": 0,
            "title": "Prompt Tokens",
            "type": "integer"
          },
          "reasoning_tokens": {
            "default": 0,
            "title": "Reasoning Tokens",
            "type": "integer"
          },
          "total_tokens": {
            "default": 0,
            "title": "Total Tokens",
            "type": "integer"
          }
        },
        "title": "Usage",
        "type": "object"
      },
      "UsageCategory": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "billable_seconds": {
            "title": "Billable Seconds",
            "type": "number"
          },
          "credits": {
            "title": "Credits",
            "type": "number"
          },
          "share_percent": {
            "title": "Share Percent",
            "type": "number"
          }
        },
        "required": [
          "action",
          "credits",
          "billable_seconds",
          "share_percent"
        ],
        "title": "UsageCategory",
        "type": "object"
      },
      "UsageEntry": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "actor_erased": {
            "default": false,
            "title": "Actor Erased",
            "type": "boolean"
          },
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "base_model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Model Name"
          },
          "billable_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Billable Seconds"
          },
          "compute_job_attempt_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compute Job Attempt Id"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "endpoint_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Name"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "project_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Name"
          },
          "rate_credits_per_minute": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rate Credits Per Minute"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "saved_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Saved Model Id"
          },
          "saved_model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Saved Model Name"
          },
          "saved_model_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Saved Model Slug"
          },
          "surcharge_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Surcharge Percent"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          },
          "training_job_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Number"
          }
        },
        "required": [
          "id",
          "created_at",
          "action",
          "amount"
        ],
        "title": "UsageEntry",
        "type": "object"
      },
      "UsageProject": {
        "properties": {
          "billable_seconds": {
            "title": "Billable Seconds",
            "type": "number"
          },
          "credits": {
            "title": "Credits",
            "type": "number"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "share_percent": {
            "title": "Share Percent",
            "type": "number"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          }
        },
        "required": [
          "credits",
          "billable_seconds",
          "share_percent"
        ],
        "title": "UsageProject",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "VectorRequest": {
        "properties": {
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "title": "Input"
          },
          "input_type": {
            "enum": [
              "query",
              "document"
            ],
            "title": "Input Type",
            "type": "string"
          },
          "model": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "type": "string"
          }
        },
        "required": [
          "model",
          "input",
          "input_type"
        ],
        "title": "VectorRequest",
        "type": "object"
      },
      "Workload": {
        "properties": {
          "effective_batch_size": {
            "anyOf": [
              {
                "maximum": 256.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Batch Size"
          },
          "eval_examples": {
            "anyOf": [
              {
                "maximum": 512.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eval Examples"
          },
          "evaluation_cadence": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "events": "#/components/schemas/EvaluationCadenceEvents",
                    "fixed_interval": "#/components/schemas/EvaluationCadenceFixedInterval"
                  },
                  "propertyName": "kind"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/EvaluationCadenceEvents"
                  },
                  {
                    "$ref": "#/components/schemas/EvaluationCadenceFixedInterval"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluation Cadence"
          },
          "examples": {
            "anyOf": [
              {
                "maximum": 1000000.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Examples"
          },
          "input_tokens": {
            "anyOf": [
              {
                "maximum": 200000.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input Tokens"
          },
          "max_seq_length": {
            "anyOf": [
              {
                "maximum": 131072.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Seq Length"
          },
          "max_steps": {
            "anyOf": [
              {
                "maximum": 100000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Steps"
          },
          "messages": {
            "anyOf": [
              {
                "maximum": 1000000.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Messages"
          },
          "output_tokens": {
            "anyOf": [
              {
                "maximum": 200000.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Tokens"
          },
          "requests": {
            "anyOf": [
              {
                "maximum": 1000000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requests"
          }
        },
        "title": "Workload",
        "type": "object"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "description": "An API key, sent as `Authorization: Bearer <key>`.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Curate datasets, train models on them, and serve the results, through one project-scoped API.\n\n**Authentication.** Send an API key as `Authorization: Bearer <key>`. Create keys under Account → API keys; a key is shown in full once, when it is created.\n\n**Versioning.** Every REST route starts with `/api/v1/`. Within v1 changes are additive only: new routes, new optional request fields, new response fields. Ignore response fields you do not know. The OpenAI-compatible routes keep their own `/openai/v1/` version and follow the OpenAI API shape.\n\n**Errors.** Every refusal on a `/api/v1` route is `{\"detail\": {\"code\": \"...\", \"message\": \"...\"}}` with a stable `code`. A missing credential is `401`, an invalid request `422 validation_error`, a conflict `409`, insufficient credits `402`, a temporarily unavailable service `503` with `Retry-After`.",
    "title": "ReOpenly API",
    "version": "v1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/projects/{owner_slug}/{project_slug}/openai/v1/chat/completions": {
      "post": {
        "description": "OpenAI-compatible. Set `model` to a hosted model's slug. With `stream: true` the response is a stream of server-sent events.",
        "operationId": "createAChatCompletion",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletionResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "The request is invalid: `detail` lists every problem."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create a chat completion",
        "tags": [
          "OpenAI-compatible"
        ]
      }
    },
    "/api/projects/{owner_slug}/{project_slug}/openai/v1/completions": {
      "post": {
        "description": "OpenAI-compatible legacy completions.",
        "operationId": "createATextCompletion",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompletionResponse"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "The request is invalid: `detail` lists every problem."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create a text completion",
        "tags": [
          "OpenAI-compatible"
        ]
      }
    },
    "/api/projects/{owner_slug}/{project_slug}/openai/v1/embeddings": {
      "post": {
        "description": "OpenAI-compatible. Set `model` to a hosted embedding model's slug. Public base references ReOpenly/Qwen3-Embedding-0.6B and ReOpenly/Qwen3-Embedding-4B also work without fine-tuning.",
        "operationId": "createEmbeddings",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingResponse"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "The request is invalid: `detail` lists every problem."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create embeddings",
        "tags": [
          "OpenAI-compatible"
        ]
      }
    },
    "/api/projects/{owner_slug}/{project_slug}/openai/v1/models": {
      "get": {
        "description": "The hosted models of this project you can call, in the OpenAI format.",
        "operationId": "listModels",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenAIModelList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "The request is invalid: `detail` lists every problem."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List models",
        "tags": [
          "OpenAI-compatible"
        ]
      }
    },
    "/api/v1/activity": {
      "get": {
        "description": "Training jobs and hosted models created across your projects, newest first.",
        "operationId": "listRecentActivity",
        "parameters": [
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Which projects' activity to include.",
            "in": "query",
            "name": "project_state",
            "required": false,
            "schema": {
              "default": "active",
              "enum": [
                "active",
                "archived",
                "all"
              ],
              "title": "Project State",
              "type": "string"
            }
          },
          {
            "description": "Include items from archived projects.",
            "in": "query",
            "name": "include_archived_projects",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Include Archived Projects"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List recent activity",
        "tags": [
          "Overview"
        ]
      }
    },
    "/api/v1/base-models": {
      "get": {
        "description": "The base models you can fine-tune or embed with, the bounds each training setting accepts, and the inference defaults.",
        "operationId": "listBaseModelsAndTrainingBounds",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseModelCatalog"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List base models and training bounds",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/credits": {
      "get": {
        "description": "The balance and recent transactions.",
        "operationId": "getYourCreditBalance",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditsResponse"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get your credit balance",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/credits/checkout": {
      "post": {
        "description": "Starts a checkout for a number of credits at a locked quote; the card is charged only after the purchase is confirmed.",
        "operationId": "buyCredits",
        "parameters": [
          {
            "description": "A unique value you choose per logical request. Repeating a request with the same key returns the first result instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutResponse"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Buy credits",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/credits/checkout/status": {
      "get": {
        "operationId": "getAPurchaseSStatus",
        "parameters": [
          {
            "description": "The checkout session returned when the purchase started.",
            "in": "query",
            "name": "session_id",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 8,
              "title": "Session Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutStatusResponse"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a purchase's status",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/credits/usage": {
      "get": {
        "description": "Totals by category and project for one month (`month=YYYY-MM`, UTC), with the statement entries.",
        "operationId": "getAMonthlyUsageStatement",
        "parameters": [
          {
            "description": "The month, as `YYYY-MM` in UTC. Defaults to the current month.",
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^\\d{4}-\\d{2}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Month"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CursorUsageResponse"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a monthly usage statement",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/dashboard": {
      "get": {
        "description": "Counts and recent items across your projects.",
        "operationId": "getTheDashboardSummary",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardResponse"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get the dashboard summary",
        "tags": [
          "Overview"
        ]
      }
    },
    "/api/v1/keys": {
      "get": {
        "description": "Your keys with their names, prefixes and status. The secret itself is never returned again.",
        "operationId": "listApiKeys",
        "parameters": [
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIKeyPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List API keys",
        "tags": [
          "API keys"
        ]
      },
      "post": {
        "description": "The response is the only time the full key is shown. Store it securely.",
        "operationId": "createAnApiKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/APIKeyCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIKeyCreated"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create an API key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/v1/keys/{key_id}": {
      "delete": {
        "description": "Requests using the key stop working immediately.",
        "operationId": "deleteAnApiKey",
        "parameters": [
          {
            "description": "One of your API keys.",
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no content."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete an API key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/v1/keys/{key_id}/activate": {
      "patch": {
        "operationId": "activateAnApiKey",
        "parameters": [
          {
            "description": "One of your API keys.",
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIKeyRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Activate an API key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/v1/keys/{key_id}/deactivate": {
      "patch": {
        "description": "A deactivated key is refused until it is activated again.",
        "operationId": "deactivateAnApiKey",
        "parameters": [
          {
            "description": "One of your API keys.",
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIKeyRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Deactivate an API key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/v1/me": {
      "get": {
        "description": "Your identity, workspace slug, profile name and email, and which account changes this sign-in may make.",
        "operationId": "getYourAccount",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get your account",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/email": {
      "post": {
        "description": "Adds the address the code was sent to, once the code is confirmed.",
        "operationId": "addAVerifiedEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailUpdated"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add a verified email",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/email/verification": {
      "post": {
        "description": "Sends a six-digit code to the address you want to add. Available when the account has no email yet.",
        "operationId": "sendAnEmailVerificationCode",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailVerificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusOnly"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Send an email verification code",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/password": {
      "post": {
        "description": "Requires the current password. Signed-in sessions only.",
        "operationId": "changeYourPassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusOnly"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Change your password",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/preferences": {
      "get": {
        "description": "Your product-analytics and advertising-measurement choices, and the privacy notice version they refer to.",
        "operationId": "getYourPrivacyChoices",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preferences"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get your privacy choices",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/preferences/advertising": {
      "put": {
        "description": "Grant or deny advertising measurement, a choice independent of product analytics. Signed-in sessions only.",
        "operationId": "setAdvertisingMeasurement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreferenceChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountView"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Set advertising measurement",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/preferences/product-analytics": {
      "put": {
        "description": "Grant or deny product analytics. Signed-in sessions only.",
        "operationId": "setProductAnalytics",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreferenceChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountView"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Set product analytics",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/me/profile": {
      "patch": {
        "description": "Signed-in sessions only; an API key cannot change the account.",
        "operationId": "changeYourDisplayName",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileUpdated"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Change your display name",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/v1/models": {
      "get": {
        "description": "Hosted models across all your projects, plus the ones shared with you.",
        "operationId": "listEveryModelYouCanCall",
        "parameters": [
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Only this project.",
            "in": "query",
            "name": "project_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Slug"
            }
          },
          {
            "description": "Only models in this state.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "disabled",
                    "deprecated"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "description": "Only models you own, that are shared with you, or that are public.",
            "in": "query",
            "name": "access",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "shared",
                    "public"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Access"
            }
          },
          {
            "description": "Include items from archived projects.",
            "in": "query",
            "name": "include_archived_projects",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Archived Projects",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostedModelPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List every model you can call",
        "tags": [
          "Overview"
        ]
      }
    },
    "/api/v1/playground/sessions": {
      "get": {
        "operationId": "listPlaygroundSessions",
        "parameters": [
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "The workspace of the project the session belongs to.",
            "in": "query",
            "name": "project_owner_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Owner Slug"
            }
          },
          {
            "description": "Only this project.",
            "in": "query",
            "name": "project_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Slug"
            }
          },
          {
            "description": "Filter Playground history by text_generation or embedding. Omit for all sessions.",
            "in": "query",
            "name": "task",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "text_generation",
                    "embedding"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Task"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSessionPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List playground sessions",
        "tags": [
          "Playground"
        ]
      },
      "post": {
        "operationId": "saveAPlaygroundSession",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlaygroundSessionWrite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSessionRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Save a playground session",
        "tags": [
          "Playground"
        ]
      }
    },
    "/api/v1/playground/sessions/{session_id}": {
      "delete": {
        "operationId": "deleteAPlaygroundSession",
        "parameters": [
          {
            "description": "One of your playground sessions.",
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "integer"
            }
          },
          {
            "description": "The workspace of the project the session belongs to.",
            "in": "query",
            "name": "project_owner_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Owner Slug"
            }
          },
          {
            "description": "Only this project.",
            "in": "query",
            "name": "project_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Slug"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no content."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a playground session",
        "tags": [
          "Playground"
        ]
      },
      "get": {
        "operationId": "getAPlaygroundSession",
        "parameters": [
          {
            "description": "One of your playground sessions.",
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "integer"
            }
          },
          {
            "description": "The workspace of the project the session belongs to.",
            "in": "query",
            "name": "project_owner_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Owner Slug"
            }
          },
          {
            "description": "Only this project.",
            "in": "query",
            "name": "project_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSessionRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a playground session",
        "tags": [
          "Playground"
        ]
      },
      "put": {
        "operationId": "updateAPlaygroundSession",
        "parameters": [
          {
            "description": "One of your playground sessions.",
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "title": "Session Id",
              "type": "integer"
            }
          },
          {
            "description": "The workspace of the project the session belongs to.",
            "in": "query",
            "name": "project_owner_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Owner Slug"
            }
          },
          {
            "description": "Only this project.",
            "in": "query",
            "name": "project_slug",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Slug"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlaygroundSessionWrite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSessionRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a playground session",
        "tags": [
          "Playground"
        ]
      }
    },
    "/api/v1/pricing/estimate": {
      "post": {
        "description": "Public. No key required.",
        "operationId": "estimateACost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PricingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingEstimate"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "summary": "Estimate a cost",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/pricing/models": {
      "get": {
        "description": "Public. No key required.",
        "operationId": "getModelPrices",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingModels"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "summary": "Get model prices",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/pricing/platform": {
      "get": {
        "description": "Public. No key required.",
        "operationId": "getPlatformPrices",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformNumbers"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "summary": "Get platform prices",
        "tags": [
          "Credits and pricing"
        ]
      }
    },
    "/api/v1/projects": {
      "get": {
        "description": "Your projects. Add `include_archived=true` to include archived ones, and `pagination=cursor` to page through them.",
        "operationId": "listProjects",
        "parameters": [
          {
            "description": "Include archived projects.",
            "in": "query",
            "name": "include_archived",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Archived",
              "type": "boolean"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List projects",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "description": "Choose the project type (`text` or `embedding`) at creation; it cannot change later.",
        "operationId": "createAProject",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectChanged"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/capabilities": {
      "get": {
        "description": "The project types you can create and what each supports.",
        "operationId": "listProjectTypes",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCapabilitiesResponse"
                }
              }
            },
            "description": "Success."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List project types",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}": {
      "get": {
        "description": "The project and counts of its chats, datasets, running jobs and hosted models.",
        "operationId": "getAProject",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDetail"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a project",
        "tags": [
          "Projects"
        ]
      },
      "put": {
        "description": "Rename the project or change its description and settings. The slug never changes.",
        "operationId": "updateAProject",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectChanged"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/archive": {
      "post": {
        "description": "Archived projects are read-only and hidden from the default list. Nothing is deleted.",
        "operationId": "archiveAProject",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectChanged"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Archive a project",
        "tags": [
          "Projects"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/chats": {
      "get": {
        "description": "Filter by tag, source, category or text. Numbered pages by default; `pagination=cursor` for cursor pages.",
        "operationId": "listChats",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "Only items carrying these tags.",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            }
          },
          {
            "description": "Only items whose text contains this value.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "title": "Search",
              "type": "string"
            }
          },
          {
            "description": "Only chats from these sources (for example `editor`, `csv`, `api`).",
            "in": "query",
            "name": "sources",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "title": "Sources",
              "type": "array"
            }
          },
          {
            "description": "Only chats in these categories.",
            "in": "query",
            "name": "categories",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "title": "Categories",
              "type": "array"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The `previous_cursor` of the current page, to page backwards.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before"
            }
          },
          {
            "description": "Set to `last` to open the last page.",
            "in": "query",
            "name": "boundary",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "last",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Boundary"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List chats",
        "tags": [
          "Chats"
        ]
      },
      "post": {
        "description": "A conversation with its messages and tags.",
        "operationId": "createAChat",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatChanged"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create a chat",
        "tags": [
          "Chats"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/chats/bulk": {
      "post": {
        "description": "Create many conversations in one request.",
        "operationId": "createChatsInBulk",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/ChatCreate"
                },
                "title": "Chats In",
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatsCreated"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create chats in bulk",
        "tags": [
          "Chats"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/chats/categories": {
      "get": {
        "description": "The categories present in the project, with counts.",
        "operationId": "listChatCategories",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "Only items whose text contains this value.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "description": "Only items carrying these tags.",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            }
          },
          {
            "description": "Only chats from these sources (for example `editor`, `csv`, `api`).",
            "in": "query",
            "name": "sources",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "title": "Sources",
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCategories"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List chat categories",
        "tags": [
          "Chats"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/chats/{chat_id}": {
      "delete": {
        "description": "Training jobs that already used the chat keep their frozen copy.",
        "operationId": "deleteAChat",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A chat of this project.",
            "in": "path",
            "name": "chat_id",
            "required": true,
            "schema": {
              "title": "Chat Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusOnly"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a chat",
        "tags": [
          "Chats"
        ]
      },
      "get": {
        "description": "The conversation with all its messages.",
        "operationId": "getAChat",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A chat of this project.",
            "in": "path",
            "name": "chat_id",
            "required": true,
            "schema": {
              "title": "Chat Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatView"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a chat",
        "tags": [
          "Chats"
        ]
      },
      "put": {
        "description": "Replace the name, description, tags or messages.",
        "operationId": "updateAChat",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A chat of this project.",
            "in": "path",
            "name": "chat_id",
            "required": true,
            "schema": {
              "title": "Chat Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatChanged"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a chat",
        "tags": [
          "Chats"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets": {
      "get": {
        "description": "Every dataset of the project, archived ones included, with ready-example counts. A text project lists its one chat dataset.",
        "operationId": "listDatasets",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List datasets",
        "tags": [
          "Datasets"
        ]
      },
      "post": {
        "description": "Embedding projects. Names are unique within the project, ignoring case.",
        "operationId": "createADataset",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingDatasetName"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetRow"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create a dataset",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/limits": {
      "get": {
        "description": "How much a dataset may hold, how much it holds, and how much remains.",
        "operationId": "getDatasetLimits",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetLimits"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get dataset limits",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}": {
      "put": {
        "description": "Returns the full dataset row.",
        "operationId": "renameADataset",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingDatasetName"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetRow"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Rename a dataset",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/archive": {
      "post": {
        "description": "An archived dataset is read-only; its examples and frozen versions are kept.",
        "operationId": "archiveADataset",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetRow"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Archive a dataset",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/examples": {
      "get": {
        "description": "Anchor, positive and optional negative examples, filtered by tag or text and paged by cursor.",
        "operationId": "listExamples",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Only items whose text contains this value.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 256,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingExamplePage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List examples",
        "tags": [
          "Datasets"
        ]
      },
      "post": {
        "description": "An anchor with its positive and an optional hard negative. Adding an identical example returns the existing one.",
        "operationId": "addAnExample",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingExampleCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingExampleBody"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add an example",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/examples/tags": {
      "post": {
        "description": "Replace the tags of several examples at once, each checked against its `expected_revision`.",
        "operationId": "setExampleTags",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingTagBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExampleTagSets"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Set example tags",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/examples/{example_id}": {
      "delete": {
        "description": "Frozen dataset versions and past training jobs keep their copy.",
        "operationId": "deleteAnExample",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "An example of this dataset.",
            "in": "path",
            "name": "example_id",
            "required": true,
            "schema": {
              "title": "Example Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no content."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete an example",
        "tags": [
          "Datasets"
        ]
      },
      "put": {
        "description": "Send the `expected_revision` you read; a concurrent edit answers `409`.",
        "operationId": "editAnExample",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "An example of this dataset.",
            "in": "path",
            "name": "example_id",
            "required": true,
            "schema": {
              "title": "Example Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingExampleUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingExampleBody"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Edit an example",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/imports": {
      "post": {
        "description": "Creates the import and returns where to upload the file.",
        "operationId": "startAnImport",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportCreated"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Start an import",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/retrieval-events": {
      "get": {
        "description": "Paged by cursor and filtered by review state.",
        "operationId": "listRecordedSearches",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "`inbox` for searches awaiting review, `history` for reviewed ones.",
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "default": "inbox",
              "enum": [
                "inbox",
                "history"
              ],
              "title": "View",
              "type": "string"
            }
          },
          {
            "description": "Only recorded searches in this review state.",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "promoted",
                    "skipped"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          },
          {
            "description": "Only items whose text contains this value.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "description": "Only searches recorded for this model.",
            "in": "query",
            "name": "model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Model"
            }
          },
          {
            "description": "Only searches recorded after this time.",
            "in": "query",
            "name": "received_after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Received After"
            }
          },
          {
            "description": "Only searches recorded before this time.",
            "in": "query",
            "name": "received_before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Received Before"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List recorded searches",
        "tags": [
          "Search feedback"
        ]
      },
      "post": {
        "description": "What your search returned for a query, and optionally which result was right. Use a hosted embedding alias or a public base reference such as ReOpenly/Qwen3-Embedding-0.6B. Public base provenance revision is 1; no hosted alias is required.",
        "operationId": "recordASearch",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrievalEventWrite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventCreatedRead"
                }
              }
            },
            "description": "Success."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventCreatedRead"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Record a search",
        "tags": [
          "Search feedback"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/retrieval-events/batch": {
      "post": {
        "operationId": "recordSearchesInBulk",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrievalEventBatchWrite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventBatchRead"
                }
              }
            },
            "description": "Success."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventBatchRead"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Record searches in bulk",
        "tags": [
          "Search feedback"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/retrieval-events/{event_id}": {
      "get": {
        "operationId": "getARecordedSearch",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "A recorded search of this dataset.",
            "in": "path",
            "name": "event_id",
            "required": true,
            "schema": {
              "title": "Event Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventDetailRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a recorded search",
        "tags": [
          "Search feedback"
        ]
      },
      "patch": {
        "operationId": "skipOrRestoreARecordedSearch",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "A recorded search of this dataset.",
            "in": "path",
            "name": "event_id",
            "required": true,
            "schema": {
              "title": "Event Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrievalEventStateWrite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventStateRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Skip or restore a recorded search",
        "tags": [
          "Search feedback"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/retrieval-events/{event_id}/promote": {
      "post": {
        "description": "Adds the query and its correct result to the dataset as a training example.",
        "operationId": "turnASearchIntoAnExample",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          },
          {
            "description": "A recorded search of this dataset.",
            "in": "path",
            "name": "event_id",
            "required": true,
            "schema": {
              "title": "Event Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrievalEventPromoteWrite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalEventPromotionRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Turn a search into an example",
        "tags": [
          "Search feedback"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/retrieval-settings": {
      "get": {
        "description": "Whether recording is enabled for this dataset and its limits.",
        "operationId": "getFeedbackSettings",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrievalSettingsRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get feedback settings",
        "tags": [
          "Search feedback"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/tags": {
      "get": {
        "description": "The dataset's tags, each with how many examples carry it.",
        "operationId": "listDatasetTags",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetTagList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List dataset tags",
        "tags": [
          "Datasets"
        ]
      },
      "post": {
        "operationId": "createADatasetTag",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingTagName"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetTag"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create a dataset tag",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/datasets/{dataset_id}/unarchive": {
      "post": {
        "operationId": "restoreAnArchivedDataset",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A dataset of this project.",
            "in": "path",
            "name": "dataset_id",
            "required": true,
            "schema": {
              "title": "Dataset Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetRow"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Restore an archived dataset",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports": {
      "get": {
        "description": "The project's imports, newest first.",
        "operationId": "listImports",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "Only imports into this dataset.",
            "in": "query",
            "name": "dataset_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Dataset Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List imports",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports/{import_id}": {
      "get": {
        "description": "Its state and row counts.",
        "operationId": "getAnImport",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "An import of this project.",
            "in": "path",
            "name": "import_id",
            "required": true,
            "schema": {
              "title": "Import Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportView"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get an import",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports/{import_id}/cancel": {
      "post": {
        "operationId": "cancelAnImport",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "An import of this project.",
            "in": "path",
            "name": "import_id",
            "required": true,
            "schema": {
              "title": "Import Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportCancelled"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Cancel an import",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports/{import_id}/confirm": {
      "post": {
        "description": "Imports the file with the confirmed mapping. Runs in the background; poll the import for its state.",
        "operationId": "confirmAnImport",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "An import of this project.",
            "in": "path",
            "name": "import_id",
            "required": true,
            "schema": {
              "title": "Import Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportConfirmed"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Confirm an import",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports/{import_id}/content": {
      "put": {
        "description": "Used when the import's upload `kind` is `backend`: send the file bytes as the request body.",
        "operationId": "uploadTheImportFile",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "An import of this project.",
            "in": "path",
            "name": "import_id",
            "required": true,
            "schema": {
              "title": "Import Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportView"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Upload the import file",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports/{import_id}/preview": {
      "post": {
        "description": "How the rows would import under a mapping: valid, blank and invalid counts with samples. Nothing is written.",
        "operationId": "previewAColumnMapping",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "An import of this project.",
            "in": "path",
            "name": "import_id",
            "required": true,
            "schema": {
              "title": "Import Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportPreviewed"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Preview a column mapping",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/imports/{import_id}/profile": {
      "post": {
        "description": "Columns, sample rows, a row estimate and a suggested column mapping.",
        "operationId": "readTheUploadedFile",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "An import of this project.",
            "in": "path",
            "name": "import_id",
            "required": true,
            "schema": {
              "title": "Import Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportProfiled"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Read the uploaded file",
        "tags": [
          "Imports"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models": {
      "get": {
        "description": "A plain array by default; `pagination=cursor` returns pages.",
        "operationId": "listHostedModels",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List hosted models",
        "tags": [
          "Hosted models"
        ]
      },
      "post": {
        "description": "Give a trained model a stable name to call it by.",
        "operationId": "hostAModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedModelCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelRead"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Host a model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}": {
      "patch": {
        "description": "Same as `PUT`.",
        "operationId": "updateAHostedModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedModelUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a hosted model",
        "tags": [
          "Hosted models"
        ]
      },
      "put": {
        "description": "Point the name at another model of the same task, or change sharing. Send `expected_revision` to avoid overwriting a concurrent change.",
        "operationId": "updateAHostedModelPut",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedModelUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a hosted model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/disable": {
      "post": {
        "description": "Calls are refused until it is enabled again.",
        "operationId": "disableAHostedModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Disable a hosted model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/download": {
      "get": {
        "description": "The model's files as a gzip-compressed tar archive.",
        "operationId": "downloadAnEmbeddingModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/gzip": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Download an embedding model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/download-metadata": {
      "get": {
        "description": "The files of an embedding model with their sizes and hashes.",
        "operationId": "describeAModelDownload",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingArtifactDownloadMetadata"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Describe a model download",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/enable": {
      "post": {
        "operationId": "enableAHostedModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Enable a hosted model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/shares": {
      "get": {
        "description": "Who else may call this model and who pays for their calls.",
        "operationId": "listShares",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelShareList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List shares",
        "tags": [
          "Hosted models"
        ]
      },
      "post": {
        "description": "Let another account call this model.",
        "operationId": "shareAModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedModelShareCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelShareRead"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Share a model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/shares/{share_id}": {
      "delete": {
        "operationId": "removeAShare",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          },
          {
            "description": "A share of this hosted model.",
            "in": "path",
            "name": "share_id",
            "required": true,
            "schema": {
              "title": "Share Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Remove a share",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/models/{model_slug}/target-compatibility": {
      "get": {
        "description": "Whether pointing this name at another embedding model changes its vector size or normalization, which would invalidate stored vectors.",
        "operationId": "checkAReplacementEmbeddingModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A hosted model of this project.",
            "in": "path",
            "name": "model_slug",
            "required": true,
            "schema": {
              "title": "Model Slug",
              "type": "string"
            }
          },
          {
            "description": "The candidate embedding model to compare with.",
            "in": "query",
            "name": "model_artifact_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "exclusiveMinimum": 0,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Model Artifact Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedModelTargetCompatibilityRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Check a replacement embedding model",
        "tags": [
          "Hosted models"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/playground/embeddings/similarity": {
      "post": {
        "description": "Cosine similarity between one query and several documents.",
        "operationId": "scoreDocumentsAgainstAQuery",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimilarityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundSimilarity"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Score documents against a query",
        "tags": [
          "Playground"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/playground/embeddings/vector": {
      "post": {
        "description": "The vectors an embedding model produces for your texts, as a query or as documents.",
        "operationId": "embedTexts",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VectorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaygroundVectors"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Embed texts",
        "tags": [
          "Playground"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/search/corpora": {
      "get": {
        "description": "Active embedding datasets with names, example counts and current selection digests, paged by cursor. No training run is needed.",
        "operationId": "listSearchDatasets",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchCorpusPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List Search datasets",
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/search/indexes": {
      "get": {
        "operationId": "listSearchIndexes",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 20,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndexPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List Search indexes",
        "tags": [
          "Search"
        ]
      },
      "post": {
        "description": "Build from exactly one dataset_id or dataset_version_id and a hosted model alias, with an owner-approved credit ceiling. dataset_id freezes the current complete dataset without a training run; existing indexes are preserved.",
        "operationId": "buildASearchIndex",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchIndexCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            },
            "description": "Created."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Build a Search index",
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/search/indexes/{index_id}": {
      "delete": {
        "operationId": "deleteASearchIndex",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A Search index of this project.",
            "in": "path",
            "name": "index_id",
            "required": true,
            "schema": {
              "title": "Index Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Done; no content."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a Search index",
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/search/indexes/{index_id}/cancel": {
      "post": {
        "description": "Stop queued, running or retrying indexing. Repeating the stop is safe. Completed charges and partial vectors remain; late results cannot commit new vectors or charges. Delete separately to release storage. Ready or failed indexes return search_index_not_building.",
        "operationId": "stopASearchIndexBuild",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A Search index of this project.",
            "in": "path",
            "name": "index_id",
            "required": true,
            "schema": {
              "title": "Index Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Stop a Search index build",
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/search/indexes/{index_id}/query": {
      "post": {
        "description": "The passages closest to your query, ranked by score.",
        "operationId": "queryASearchIndex",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A Search index of this project.",
            "in": "path",
            "name": "index_id",
            "required": true,
            "schema": {
              "title": "Index Id",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchQuery"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchQueryResult"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Query a Search index",
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/search/versions": {
      "get": {
        "description": "Frozen dataset versions you can build an index from, and the Search limits.",
        "operationId": "listIndexableDatasetVersions",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 50,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchVersionPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List indexable dataset versions",
        "tags": [
          "Search"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/tags": {
      "get": {
        "description": "The tags of a text project, each with how many chats carry it.",
        "operationId": "listChatTags",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatTagList"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List chat tags",
        "tags": [
          "Chats"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs": {
      "get": {
        "description": "The project's jobs, newest first, paged by cursor.",
        "operationId": "listTrainingJobs",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "The `next_cursor` of the previous page. Omit it for the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List training jobs",
        "tags": [
          "Training"
        ]
      },
      "post": {
        "description": "The request body depends on the project type: a tag selection and settings for a text project, a dataset version and settings for an embedding project. Requires an `Idempotency-Key` header. Only measured training time is billed; a run that never begins training is free.",
        "operationId": "startATrainingJob",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TrainingJobCreate"
                  },
                  {
                    "$ref": "#/components/schemas/EmbeddingTrainingCreate"
                  }
                ],
                "title": "Payload",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Start a training job",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/estimate": {
      "post": {
        "description": "The planned duration and credit cost of an embedding run.",
        "operationId": "estimateAnEmbeddingRun",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingTrainingSelection"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingTrainingEstimate"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Estimate an embedding run",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/estimate-messages": {
      "get": {
        "description": "Counts, planned steps, duration and credit cost for a tag selection and settings.",
        "operationId": "estimateATextRun",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "Only items carrying these tags.",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "default": "",
              "title": "Tags",
              "type": "string"
            }
          },
          {
            "description": "The base model to estimate for.",
            "in": "query",
            "name": "model_name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Model Name"
            }
          },
          {
            "description": "Training steps to plan (bounded by the base model's profile).",
            "in": "query",
            "name": "max_steps",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Steps"
            }
          },
          {
            "description": "Passes over the dataset to plan.",
            "in": "query",
            "name": "num_train_epochs",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Num Train Epochs"
            }
          },
          {
            "description": "The longest sequence, in tokens, a training example may use.",
            "in": "query",
            "name": "max_seq_length",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Seq Length"
            }
          },
          {
            "description": "Examples per training batch.",
            "in": "query",
            "name": "per_device_train_batch_size",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Per Device Train Batch Size"
            }
          },
          {
            "description": "Batches accumulated per optimizer step.",
            "in": "query",
            "name": "gradient_accumulation_steps",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Gradient Accumulation Steps"
            }
          },
          {
            "description": "The precision the base model is loaded in for training.",
            "in": "query",
            "name": "base_load_precision",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Base Load Precision"
            }
          },
          {
            "description": "Steps over which the learning rate warms up.",
            "in": "query",
            "name": "warmup_steps",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Warmup Steps"
            }
          },
          {
            "description": "How evaluation is scheduled: a number of `events` or a `fixed_interval` of steps.",
            "in": "query",
            "name": "evaluation_cadence_kind",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "events",
                    "fixed_interval"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Evaluation Cadence Kind"
            }
          },
          {
            "description": "How many evaluations to run over the training.",
            "in": "query",
            "name": "evaluation_events",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Evaluation Events"
            }
          },
          {
            "description": "Steps between evaluations.",
            "in": "query",
            "name": "evaluation_interval_steps",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Evaluation Interval Steps"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingMessageEstimate"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Estimate a text run",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/preview": {
      "post": {
        "description": "What a run over the selected examples would train: counts, split and planned steps. Nothing is started.",
        "operationId": "previewAnEmbeddingRun",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingTrainingSelection"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingTrainingPreview"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Preview an embedding run",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/profiles": {
      "get": {
        "description": "The base models an embedding project can train, and the bounds of every setting you may choose.",
        "operationId": "listEmbeddingTrainingProfiles",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingTrainingProfiles"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List embedding training profiles",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}": {
      "get": {
        "description": "Status, progress, metrics, the frozen configuration and whether a model is available.",
        "operationId": "getATrainingJob",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "Whether `job_id` is the job's id or its number within the project.",
            "in": "query",
            "name": "identifier",
            "required": false,
            "schema": {
              "default": "id",
              "enum": [
                "id",
                "number"
              ],
              "title": "Identifier",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a training job",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/attempts": {
      "get": {
        "description": "Each attempt with its status, timing and whether a log is available.",
        "operationId": "listAJobSAttempts",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TrainingAttempt"
                  },
                  "title": "Response 200 List Training Attempts Api V1 Projects  Owner Slug   Project Slug  Training Jobs  Job Id  Attempts Get",
                  "type": "array"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "List a job's attempts",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/attempts/{attempt_id}/logs": {
      "get": {
        "description": "Newline-delimited JSON records.",
        "operationId": "streamAnAttemptSLog",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "An attempt of this training job.",
            "in": "path",
            "name": "attempt_id",
            "required": true,
            "schema": {
              "title": "Attempt Id",
              "type": "integer"
            }
          },
          {
            "description": "How many items (or, for a log, bytes) to skip.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 65536,
              "maximum": 1048576,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Stream an attempt's log",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/cancel": {
      "post": {
        "operationId": "cancelATrainingJob",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Cancel a training job",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/dataset": {
      "get": {
        "description": "The examples the job trained on, as they were when it started.",
        "operationId": "readAJobSFrozenDataset",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "How many items (or, for a log, bytes) to skip.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "description": "The largest number of items (or, for a log, bytes) to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Only items whose text contains this value.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "description": "Only the training or the evaluation examples.",
            "in": "query",
            "name": "split",
            "required": false,
            "schema": {
              "default": "all",
              "enum": [
                "all",
                "train",
                "eval"
              ],
              "title": "Split",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingDatasetPage"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Read a job's frozen dataset",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/dataset/{chat_id}": {
      "get": {
        "description": "One conversation from a text job's frozen dataset.",
        "operationId": "readOneFrozenChat",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "A chat of this project.",
            "in": "path",
            "name": "chat_id",
            "required": true,
            "schema": {
              "title": "Chat Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingDatasetChat"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Read one frozen chat",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/download": {
      "get": {
        "description": "A gzip-compressed archive, available when the job reports `model_available`.",
        "operationId": "downloadTheTrainedAdapter",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "What to download. `lora` (the default) is the trained adapter.",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "const": "lora",
              "default": "lora",
              "title": "Format",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/gzip": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Download the trained adapter",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/download-metadata": {
      "get": {
        "description": "The files and total size of the trained adapter download, without downloading it.",
        "operationId": "describeAJobSDownload",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "What to download. `lora` (the default) is the trained adapter.",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "const": "lora",
              "default": "lora",
              "title": "Format",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingDownloadMetadata"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Describe a job's download",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/finish": {
      "post": {
        "description": "Settles a paused run as succeeded with the model it reached. Free of charge.",
        "operationId": "keepAPausedJobSModel",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Keep a paused job's model",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/pause": {
      "post": {
        "description": "The run stops at its next checkpoint and waits. Resume it or keep the model it reached.",
        "operationId": "pauseATrainingJob",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Pause a training job",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/resume": {
      "post": {
        "description": "Continues from the checkpoint. Requires an `Idempotency-Key` header.",
        "operationId": "resumeAPausedJob",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "A unique value you choose per logical request. Repeating a request with the same key returns the first result instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Idempotency-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Resume a paused job",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/retry": {
      "post": {
        "description": "Runs a failed or cancelled job again on its frozen input. Requires an `Idempotency-Key` header.",
        "operationId": "retryATrainingJob",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          },
          {
            "description": "A unique value you choose per logical request. Repeating a request with the same key returns the first result instead of acting twice.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/TrainingRetryRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Retry In"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobRead"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Retry a training job",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/training-jobs/{job_id}/retry-estimate": {
      "get": {
        "description": "Whether the job can be retried and what the retry would cost.",
        "operationId": "estimateARetry",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          },
          {
            "description": "A training job of this project.",
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRetryEstimate"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Estimate a retry",
        "tags": [
          "Training"
        ]
      }
    },
    "/api/v1/projects/{owner_slug}/{project_slug}/unarchive": {
      "post": {
        "operationId": "restoreAnArchivedProject",
        "parameters": [
          {
            "description": "The project owner's workspace: the first segment of the project URL.",
            "in": "path",
            "name": "owner_slug",
            "required": true,
            "schema": {
              "title": "Owner Slug",
              "type": "string"
            }
          },
          {
            "description": "The project's slug: the second segment of the project URL.",
            "in": "path",
            "name": "project_slug",
            "required": true,
            "schema": {
              "title": "Project Slug",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectChanged"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "The request is invalid: `detail.code` is `validation_error` and `detail.errors` lists every problem."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "An error. Branch on `detail.code`; show `detail.message`."
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Restore an archived project",
        "tags": [
          "Projects"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://reopenly.com"
    }
  ],
  "tags": [
    {
      "description": "Text-generation and embedding projects. Projects are archived, never deleted.",
      "name": "Projects"
    },
    {
      "description": "Datasets, examples and tags, for every project type.",
      "name": "Datasets"
    },
    {
      "description": "Bring a CSV or JSONL file into a dataset: upload, map columns, preview, confirm.",
      "name": "Imports"
    },
    {
      "description": "The conversations a text project trains on.",
      "name": "Chats"
    },
    {
      "description": "Fine-tune a model on a dataset, follow it live, and download the result.",
      "name": "Training"
    },
    {
      "description": "Stable names for trained models, with sharing and downloads.",
      "name": "Hosted models"
    },
    {
      "description": "Call a hosted model with any OpenAI client, at the project's `/openai/v1` base URL.",
      "name": "OpenAI-compatible"
    },
    {
      "description": "Try a model interactively: saved chat sessions and embedding comparisons.",
      "name": "Playground"
    },
    {
      "description": "Index a dataset version with an embedding model and query it.",
      "name": "Search"
    },
    {
      "description": "Record what your search returned and turn corrections into training examples.",
      "name": "Search feedback"
    },
    {
      "description": "Keys for calling the API from your own code.",
      "name": "API keys"
    },
    {
      "description": "Your account, profile and privacy choices.",
      "name": "Account"
    },
    {
      "description": "Credit balance, purchases, usage statements and prices.",
      "name": "Credits and pricing"
    },
    {
      "description": "Summaries across all your projects.",
      "name": "Overview"
    }
  ]
}
