Cloudflare Workers AI
In this example, we are using Cloudflare Workers AI to generate the keys.
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.
Note: Since Workers AI is currently in beta, it is available for free. You might need a paid plan and have to pay per usage in the future. See here for up-to-date details.
Platforms will always change so this guide may not reflect 100% process.
Generate the API key
- Log in to Cloudflare. Follow the instructions in their documentation to get an API key and the Account ID
- Generate the API Key and note the Account ID
- Once the key is generated, store it in a safe and secure place and copy it
Using API key for Discourse AI
- Go to Admin settings from the sidebar or profile and then Plugins
- Search or find
Discourse AI
and click settings - Search or find
ai_cloudflare_workers_api_token
and input your copied-over key - Search or find
ai_cloudflare_workers_account_id
and input your copied-over ID
Last edited by @hugh 2024-05-29T06:10:50Z
Check document
Perform check on document: