# Debugging Discourse's AI Features: When OpenAI Responds but Forum Doesn't

**URL:** https://meta.discourse.org/t/debugging-discourses-ai-features-when-openai-responds-but-forum-doesnt/313577
**Category:** Support
**Tags:** ai
**Created:** [June 25, 2024, 11:43am UTC](https://meta.discourse.org/t/debugging-discourses-ai-features-when-openai-responds-but-forum-doesnt/313577 "2024-06-25T11:43:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 25, 2024, 2:35pm UTC](https://meta.discourse.org/t/debugging-discourses-ai-features-when-openai-responds-but-forum-doesnt/313577/2 "2024-06-25T14:35:20Z")

</div>

Try the instruction below on your server please.

> [@Configure API Keys for OpenAI](https://meta.discourse.org/t/configure-api-keys-for-openai/280783/7):
>
> What’s the output of running
> 
> ```plaintext
> curl https://api.openai.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $OPENAI_API_KEY" -d '{
> "model": "gpt-4",
> "messages": [
> {
> "role": "system",
> "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair."
> },
> {
> "role": "user",
> "content": "Compose a poem that explains the concept of recursion in programming."
> }
> ]
> }'
> 
> ```
> 
> in your Discourse server? Don’t forget to place your API key on the command.

---

_[View the full topic](https://meta.discourse.org/t/debugging-discourses-ai-features-when-openai-responds-but-forum-doesnt/313577)._
