Skip to content
HALOWERK

Denkwerk

finetune jsonl validate

Parses every line and checks the documented structure: OpenAI chat format with the checks of the OpenAI cookbook "Chat fine-tuning data prep" (data_type, missing_messages_list, message_missing_key, message_unrecognized_key, unrecognized_role, missing_content, example_missing_assistant_message) plus weight 0/1 on assistant messages, tool_calls with JSON-string arguments and tool messages bound to a tool_call_id; OpenAI preference (DPO) records; Anthropic Messages-style records (top-level.

POST https://denk.halowerk.com/v1/finetune-jsonl-validate

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
jsonlstringYesThe JSONL file content.
formatstringNo
encodingstringNoTokenizer for counting (o200k_base for GPT-4o/4.1 family, cl100k_base for GPT-3.5/4).
max_tokens_per_exampleintegerNoFlag examples above this size (e.g. 16385 for gpt-3.5-turbo per the cookbook).
min_examplesintegerNoMinimum number of examples (OpenAI requires at least 10).
max_issuesintegerNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "jsonl"
  ],
  "properties": {
    "jsonl": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000000,
      "description": "The JSONL file content."
    },
    "format": {
      "type": "string",
      "enum": [
        "auto",
        "openai_chat",
        "openai_preference",
        "anthropic_messages",
        "hf_messages",
        "sharegpt"
      ],
      "default": "auto"
    },
    "encoding": {
      "type": "string",
      "enum": [
        "o200k_base",
        "cl100k_base"
      ],
      "default": "o200k_base",
      "description": "Tokenizer for counting (o200k_base for GPT-4o/4.1 family, cl100k_base for GPT-3.5/4)."
    },
    "max_tokens_per_example": {
      "type": "integer",
      "minimum": 16,
      "maximum": 2000000,
      "description": "Flag examples above this size (e.g. 16385 for gpt-3.5-turbo per the cookbook)."
    },
    "min_examples": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000,
      "default": 10,
      "description": "Minimum number of examples (OpenAI requires at least 10)."
    },
    "max_issues": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "default": 200
    }
  }
}

Open original schema

Published input example

{
  "jsonl": "{\"messages\":[{\"role\":\"system\",\"content\":\"You are terse.\"},{\"role\":\"user\",\"content\":\"Capital of France?\"},{\"role\":\"assistant\",\"content\":\"Paris.\"}]}",
  "min_examples": 1
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’