Commit Graph

2 Commits

Author SHA1 Message Date
serrrfirat
8f2fe99b18 docs: update OpenWiki wiki 2026-08-24 08:19:19 +00:00
ironclaw-ci[bot]
61e767bfbb docs: update OpenWiki wiki (#5535)
* fix(openwiki): select Anthropic provider explicitly + correct model id

The first dispatched run failed: openwiki defaults to OpenRouter unless
OPENWIKI_PROVIDER is set, and its Anthropic model ids (src/constants.ts) are
claude-haiku-4-5 / claude-sonnet-5 / claude-opus-4.8 — not the raw API id
claude-sonnet-4-6. Set OPENWIKI_PROVIDER=anthropic, default model claude-haiku-4-5,
and add a model_id dispatch input so the exact id can be tuned without another PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(openwiki): use NEAR AI (openai-compatible) via LIVE_OPENAI_COMPATIBLE_API_KEY

The Anthropic path failed on openwiki's malformed document content block
(400 invalid_request_error, Anthropic-format-specific). Switch to openwiki's
OpenAI provider pointed at NEAR AI's OpenAI-compatible endpoint using the existing
LIVE_OPENAI_COMPATIBLE_API_KEY repo secret (base https://cloud-api.near.ai/v1,
model Qwen/Qwen3.5-122B-A10B) — the same key/host/model live-canary.yml uses.
No new secret needed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(openwiki): back to Anthropic + strip binaries the agent was attaching

Root cause was never the Anthropic provider (it authenticated and ran) — openwiki's
read_file tool wraps binary files as media/document content blocks, and it read
tests/fixtures/hello.pdf, producing a document block Anthropic rejects (400,
media_type must be application/pdf). openwiki has no ignore config, so strip
non-text assets from the ephemeral checkout before generating. Revert provider to
Anthropic (ANTHROPIC_API_KEY, claude-haiku-4-5).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(openwiki): apply openwiki#33 workaround (octet-stream -> text/plain)

The recurring Anthropic 400 (document.source.base64.media_type must be
application/pdf) is a known openwiki bug (langchain-ai/openwiki#33): the bundled
deepagents read-tool maps extensionless/unmapped text files (Makefile, Dockerfile,
LICENSE, *.lock) to application/octet-stream and sends them as base64 document
blocks. Apply the issue's confirmed workaround — patch the installed deepagents
bundle's MIME fallback to text/plain — then keep the binary strip for genuine
binaries. Stays on Anthropic (which was never the problem).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* docs: update OpenWiki wiki

---------

Co-authored-by: serrrfirat <f@nuff.tech>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: serrrfirat <5748809+serrrfirat@users.noreply.github.com>
2026-07-02 13:46:38 +03:00