Go to file
Sam a6fa619c31
FEATURE: enforce jpg/png for all images (#1309)
This ensures webp / gif are converted to png prior to sending
to LLMs given webp and gif are not evenly supported.

png/jpg is universally supported and are the only supported format.

longer term we need to add support for audio/video/pdf which is supported by some models.

* more specs
2025-05-05 17:46:37 +10:00
.github/workflows
admin/assets/javascripts/discourse
app FIX: system persona state leaking between sites (#1304) 2025-05-01 13:24:53 +10:00
assets UX: update conversation input styles (#1308) 2025-05-02 13:42:12 -04:00
config FIX: clear uploads after successfully posting new PM (#1307) 2025-05-02 13:46:22 +10:00
db FEATURE: add support for uploads when starting a convo (#1301) 2025-05-01 12:21:07 +10:00
discourse_automation
evals
lib FEATURE: enforce jpg/png for all images (#1309) 2025-05-05 17:46:37 +10:00
public/ai-share
spec FEATURE: enforce jpg/png for all images (#1309) 2025-05-05 17:46:37 +10:00
svg-icons
test/javascripts
tokenizers
.discourse-compatibility DEV: Add compatibility with the Glimmer Post Stream (#1230) 2025-04-29 23:55:54 -03:00
.gitignore
.npmrc
.prettierignore
.prettierrc.cjs
.rubocop.yml
.streerc
.template-lintrc.cjs
Gemfile
Gemfile.lock
LICENSE
README.md
about.json
eslint.config.mjs
package.json
plugin.rb
pnpm-lock.yaml
stylelint.config.mjs
translator.yml

README.md

Discourse AI Plugin

Plugin Summary

For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco

Evals

The directory evals contains AI evals for the Discourse AI plugin. You may create a local config by copying config/eval-llms.yml to config/eval-llms.local.yml and modifying the values.

To run them use:

cd evals ./run --help

Usage: evals/run [options]
    -e, --eval NAME                  Name of the evaluation to run
        --list-models                List models
    -m, --model NAME                 Model to evaluate (will eval all models if not specified)
    -l, --list                       List evals

To run evals you will need to configure API keys in your environment:

OPENAI_API_KEY=your_openai_api_key ANTHROPIC_API_KEY=your_anthropic_api_key GEMINI_API_KEY=your_gemini_api_key