normalizeDuckDuckGoModel (duckduckgo-web/models.ts)

iskyewinter-collab/Omniroute · open-sse/executors/duckduckgo-web/models.ts · typescript · MIT
ai

DuckDuckGo Duck.ai model catalog helpers (pure — no network, no DOM stubs). Wire ids captured live from GET /duckchat/v1/models on 2026-08-26; that endpoint requires no VQD/challenge token, so the executor re-validates the requested model against it at runtime (see getLiveModelId

// Source: https://github.com/iskyewinter-collab/Omniroute | License: MIT | Copyright 2026 diegosouzapw
// Provided via justclaw.it.com; keep this notice with the code.
// DuckDuckGo Duck.ai model catalog helpers (pure — no network, no DOM stubs).
// Wire ids captured live from GET /duckchat/v1/models on 2026-08-26; that
// endpoint requires no VQD/challenge token, so the executor re-validates the
// requested model against it at runtime (see getLiveModelIds in duckduckgo-web.ts)
// and this static map stays as the offline fallback.

// #4037: the real served x-fe-version token has a 20-hex tail (e.g.
// `serp_20250401_100419_ET-19d438eb199b2bf7c300`); an earlier `{40}` requirement
// never matched the live token, so the scrape silently fell back to a hardcoded
// default. Bounded `{20,40}

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key