Skip to content
HALOWERK

Denkwerk

chat jsonl convert

Reads JSONL in any of four common layouts (OpenAI chat "messages", Alpaca instruction/input/output, ShareGPT "conversations" with from/value, prompt/completion), validates roles and empty turns, and writes the target layout line by line. Lines that cannot be represented in the target (for example multi-turn chats into Alpaca) are reported with their line number instead of being changed silently.

POST https://denk.halowerk.com/v1/chat-jsonl-convert

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
jsonlstringYes
tostringYes
system_promptstringNoOptional system message added when converting to openai.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "jsonl",
    "to"
  ],
  "properties": {
    "jsonl": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000000
    },
    "to": {
      "type": "string",
      "enum": [
        "openai",
        "alpaca",
        "sharegpt",
        "prompt_completion"
      ]
    },
    "system_prompt": {
      "type": "string",
      "maxLength": 10000,
      "description": "Optional system message added when converting to openai."
    }
  }
}

Open original schema

Published input example

{
  "to": "openai",
  "jsonl": "{\"instruction\":\"Translate to German\",\"input\":\"Good morning\",\"output\":\"Guten Morgen\"}"
}

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 โ†’