Skip to content

v0.5.0

Latest

Choose a tag to compare

@www222fff www222fff released this 24 Nov 07:57

v0.5.0 — Markdown replies, thread isolation, tool calling

Chat output

  • Replies keep their markdown: the reply bubble's HTML is converted back to
    markdown, so code fences, lists, bold and links survive (PR #8).
  • Streaming only sends text two page snapshots agree on, so the joined deltas
    equal the final reply — no duplicated or garbled chunks.
  • Non-streaming /v1/chat/completions and /v1/responses return the final
    reply itself instead of a join of streamed deltas.

Thread isolation

  • A request never answers from, or sends into, the previous request's thread:
    a "new" thread that still shows the old conversation is opened again and
    then refused, and a first reply that arrives on the thread the request left
    is discarded (PR #8).
  • A full page navigation must actually land on /thread/new before sending.
  • A warning is logged when the page truncates a long prompt.

Tool calling (emulated)

  • tools on /v1/chat/completions now work: tool definitions go into the
    prompt, and <tool_call> / JSON blocks in the reply come back as OpenAI
    tool_calls with finish_reason: "tool_calls", streaming or not. Tool
    results sent back as role: "tool" messages go into the next prompt (PR #9).
  • Emulated, so whether the model emits a call is up to it; tool_choice is
    ignored.

Diagnostics

  • Chromium launch checks: a profile held by another Chrome or a taken debug
    port fails fast with the cause; a failed launch reports the exit code's
    meaning and the tail of chromium-output.log.
  • The gateway refuses to start when its own port is taken, and logs the build
    commit at startup.
  • MUSE2API_DEBUG_PROMPT=1 traces which thread each request used and the
    prompt as sent.

Removed

  • The host-specific parts of PR #9: workspace file injection (it could put the
    gateway's own files, including data/ account cookies, into any client's
    prompt), the refusal fallback that invented shell commands, fabricated
    check reports, and reply rewriting.

Notes

  • 248 tests passing.