Commit Graph
4 Commits
Author SHA1 Message Date
yetone 4167419abf site: breadcrumbs in every docs page's structured data
Each docs page in en, zh and ja (98 pages, contributors left out) gets
a schema.org BreadcrumbList: magpie (the language's home page) > Docs
(that language's start page) > the page's h1. Search results can then
show the path instead of a bare URL. The eleven pages that had no JSON-LD
at all (docker, remote, intent, plugins, import, integrate, library,
mcp-router, masking, start, privacy) also get a TechArticle built from
their h1, meta description and canonical URL, like the other pages.
zh pages' inLanguage is zh-CN everywhere, as the older pages had it.
Existing JSON-LD is only appended to (the diff has no deletions besides
the inLanguage fix).

Run: every docs page's JSON-LD parsed with node (98 with a
BreadcrumbList); mote: node --test worker.test.mjs install.test.mjs:
71 pass, 0 fail.
Not tried: Google's Rich Results Test on the deployed pages.
2026-11-11 07:59:25 +08:00
yetone 4ca0befb8e site: docs pages for Anthropic and OpenAI API keys in every agent
New /docs/anthropic and /docs/openai in en, zh and ja: adding the key,
endpoints, model list, each agent's route (pass-through or translated),
what magpie does for the vendor (Anthropic cache marks and thinking,
OpenAI prompt_cache_key, Responses vs Chat, priority tier), reasoning,
web search, cost, several keys, troubleshooting and a JSON-LD FAQ.
Every claim was checked against internal/provider, internal/gateway and
internal/catalog. The "By provider" line on 30 pages, sitemap.xml (99
URLs), llms.txt and the rebuilt llms-full.txt link them.

Run (wsl-run, magpie-desktop; mote refused ssh at the time):
node --test worker.test.mjs install.test.mjs: 71 pass, 0 fail. Each new
page's JSON-LD parsed with node.
Not tried: the pages in a real browser beyond the deployed 200 check.
2026-11-10 18:56:19 +08:00
yetone b681b036d2 site: Mistral and Ollama pages in en, zh and ja
/docs/mistral and /docs/ollama (with zh/ and ja/) answer "how do I use
Mistral / Ollama in Claude Code, Codex, Gemini CLI and OpenCode".

Facts come from the source: the mistral, ollama and ollama-cloud
presets in internal/provider/presets.go, chattidy.go (thinking parts,
#483, #494), mistral_plan.go, ollama_usage.go, local_address.go,
gateway/ollama.go, and the usage text of internal/cli/providers_cli.go
and model_cli.go for every CLI example (provider add, fallback, models
+id, model price, model efforts).

Every docs page with a "By provider" line now lists both, in one order;
sitemap.xml, llms.txt and llms-full.txt (rebuilt) carry them.

Run on mote: node --test worker.test.mjs install.test.mjs (fail 0);
JSON-LD of the six pages parsed. Deployed (e33573b9) and every new URL
answers 200.
Not tried: the CLI examples against a live magpie (read from the
source's usage text instead).
2026-11-10 04:54:13 +08:00
yetone 682a1e3925 site: Gemini and Grok pages in en, zh and ja
New docs pages /docs/gemini and /docs/grok (with zh/ and ja/), each
linked from every "By provider" line (the four agent guides, OpenRouter
and Copilot in all three languages), sitemap.xml and llms.txt;
llms-full.txt rebuilt.

Gemini facts and their sources:
- preset "google", AI Studio keys, models.dev google catalog
  (internal/provider/presets.go); Chat and native Gemini endpoints,
  only Gemini clients on the native API (provider/gemini_api.go).
- thinking_config with include_thoughts, Gemini 2 budgets, xhigh/max
  sent as high (gateway/chat.go aiStudioThinking); a refused level is
  retried at the nearest one, a refused thinking_config falls back to
  reasoning_effort (gateway.go geminiRefusedLevel, refusesThinkingConfig).
- thought signatures kept 90 days and returned only to their provider
  (gemini_sigstore.go sigKeep, gemini_signature.go); tool schema clean-up
  (gemini_schema.go); search only without function tools (search.go
  geminiKeySearches); per-minute 429s as rate limits (routing.go).
- Vertex AI preset and options (provider/vertex.go, cli/providers_cli.go).
- Code Assist and Antigravity worded as docs/subscriptions.

Grok facts and their sources:
- xai preset: Chat and Responses at api.x.ai/v1, Messages at api.x.ai
  (presets.go); Claude Code, Codex, OpenCode go as they are, Gemini CLI
  translated to Chat (provider.go Speaks, gateway.go usable).
- fixes for xAI: xai_body.go, grok_schema.go (#2317), object_root.go
  (#1271), lone tool_choice (#378), additional_tools (#350),
  grok_integral.go (#1431), custom_tool.go.
- effort fitting (decide.go fitFor), search (search.go), cache stickiness
  (affinity.go cacheWorth/cacheCold), errors (gateway.go tooLongRe,
  fallback.go shapeRefused). Grok Build's ~/.grok/config.toml (agent/grok.go).
- The Grok subscription and its community plugin are left out on purpose.

Run: mote-run `node --test worker.test.mjs install.test.mjs` in site/,
71 pass; JSON-LD of all six pages parsed with node on mote. Deployed
(version f785815d) and curl-checked: all six pages 200, sitemap lists them.

Not tried: no real Gemini or xAI request was made for this page; header
names, vendor terms, free-tier numbers and xAI's own rate limits are left
out because the source doesn't state them.
2026-11-10 04:27:16 +08:00