examples/provider-moonshot/README.md
You can run this example with:
npx promptfoo@latest init --example provider-moonshot
cd provider-moonshot
Set your MOONSHOT_API_KEY environment variable. You can get a key from the Kimi (Moonshot) platform.
Then run:
promptfoo eval
View the results with promptfoo view.
MOONSHOT_API_KEY:
kimi-k3 — Moonshot's flagship Kimi thinking model. It reasons before answering; showThinking: false keeps that reasoning out of the graded output.kimi-k2.6 — the cheaper previous-generation thinking model, with reasoning turned off via the K2.x-only passthrough: { thinking: { type: disabled } } control.icontains / icontains-any assertions, so the example runs with nothing but a MOONSHOT_API_KEY (Moonshot does not expose an embeddings endpoint).Kimi (kimi-k3 / kimi-k2.x) models pin temperature and the other sampling params to fixed values, so leave them unset — the provider handles that for you. Model names rotate over time; if one 404s, pick a current id from the Kimi model list.