discourse-ai-llm-presets

Refreshes default LLM model presets, pricing, and i18n keys in Discourse AI.

47.8k|9.0k|Updated Jan 12, 2013
One-click install
npx skills add https://github.com/discourse/discourse --skill discourse-ai-llm-presets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discourse-ai-llm-presets
Source: https://github.com/discourse/discourse/tree/main/.skills/discourse-ai-llm-presets
Command: npx skills add https://github.com/discourse/discourse --skill discourse-ai-llm-presets

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Discourse AI ships curated LLM presets that go stale as providers release new models and change pricing, leaving admins with outdated one-click configurations and blank model descriptions.

Core Features & Use Cases

  • Preset Refresh: Updates model IDs, context windows, pricing, and vision flags in llm_presets.rb for Anthropic, Google, OpenAI, and OpenRouter provider blocks.
  • i18n Synchronization: Keeps model_description keys in client.en.yml exactly matched to the preset model list so admin UI descriptions never go blank.
  • Data Cross-Referencing: Pulls live data from llm-prices.com, the Catwalk provider catalog, and the OpenRouter top-weekly API to ground every change.
  • Use Case: When OpenAI releases a new GPT version, run this Skill to update the OpenAI preset block, correct any drifted pricing, and add the matching locale keys in one pass.

Quick Start

Update the Discourse AI default LLM presets with the latest models and pricing from the providers.

Frequently Asked Questions about discourse-ai-llm-presets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update the default LLM presets in Discourse AI?

Edit the provider preset blocks in plugins/discourse-ai/lib/completions/llm_presets.rb, cross-referencing llm-prices.com for pricing and the Catwalk catalog for context windows and vision flags. Then update the matching model_description keys in config/locales/client.en.yml.

How are OpenRouter models selected for the Discourse AI preset?

Fetch the OpenRouter top-weekly API list, skip :free variants, ~latest alias slugs, and first-party Anthropic, Google, and OpenAI models, then take the top 5-6 remaining paid models by weekly usage.

Why are model descriptions blank in the Discourse AI admin UI?

Blank descriptions mean the model_description i18n key is missing in client.en.yml. Keys follow the format provider_id-model_name with dots, slashes, and colons replaced by dashes, and missing keys silently fall through to empty strings.

Does updating LLM presets affect existing configured models?

No. Preset changes only affect new one-click LLM configurations. Existing LlmModel database rows keep working under their original names and settings.

Should I update eval-llms.yml or non-English locale files when refreshing presets?

No. eval-llms.yml is an internal evaluation suite that may intentionally reference older models, and non-English locales are managed via Crowdin. Only update llm_presets.rb and client.en.yml.