Skip to content

Add extended thinking support to chat client #11

@robkooper

Description

@robkooper

Support models that expose a thinking/reasoning step (e.g. Claude extended thinking, o1-style models). Display the thinking content in the chat UI, collapsed by default.

Hints:

  • In send_message (llm.py), detect thinking blocks in the response and return them alongside the reply
  • Store thinking content in the Message model (new thinking column or as part of metadata)
  • In the chat UI, render a collapsible "Thinking..." block before the assistant reply
  • Pass thinking parameters in the API request when the model supports it (check model name or a flag on ModelConfig)
  • Consider a show_thinking toggle in config.yaml per model or globally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions