This guide explains how to configure API keys for Anthropic to enable Discourse AI features that require 3rd party LLM keys.
Required user level: Administrator
In this example, we are using Anthropic to generate the keys.
Note: You will likely need a paid plan and have to pay per usage. See here for up-to-date details and pricing.
Platforms will always change so this guide may not reflect 100% process.
In order to use certain AI modules, users must have an API Key from a 3rd party provider such as OpenAI (ChatGPT), Anthropic (Claude), Stability AI (Stable Diffusion), etc
Please check each AI module to see which 3rd party providers can be used for it.
Obtain the API key
- First you will need to request access for Claude
- Once accepted, agree to their pricing and terms then you will be able to obtain their API key
- Once the key is obtained, store it in a safe and secure place and copy it
Using API key for Discourse AI
- Go to
Admin
settings->Plugins
→AI
→LLMs
tab - Click on the + New Model button.
- Select the appropriate Claude model from the list
- Paste the API key into the
API Key of the service hosting the model
field - Save the LLM
Last edited by @pedrom 2024-08-01T03:40:27Z
Check document
Perform check on document: