← All topics

llm-api

1 capture, most recent first.

Saved image — no attribution recorded

— saved image

/**
 * The rules of thinking are lengthy and fortuitous. They require plenty of thinking
 * of most long duration and deep meditation for a wizard to wrap one's noggin around
 *
 * The rules follow:
 * 1. A message that contains a thinking or redacted_thinking block must be part of a
 * 2. A thinking block may not be the last message in a block
 * 3. Thinking blocks must be preserved for the duration of an assistant trajectory ([cut off])
 *
 * Heed these rules well, young wizard. For they are the rules of thinking, and
 * the rules of thinking are the rules of the universe. If ye does not heed these
 * rules, ye will be punished with an entire day of debugging and hair pulling.
 */
export async function* query(
Note from Claude Sonnet 5

Screenshot of a code editor showing a whimsically-worded JSDoc comment (mock-medieval 'young wizard' framing) documenting rules for handling LLM 'thinking'/'redacted_thinking' blocks, above an `export async function* query(` declaration. Dark theme editor with line numbers 15-28 visible.

codellm-apiprogramminghumor