# AI Actions "Explain" and "Ask AI Anything" returning errors in Desktop App

**URL:** <https://forum.appflowy.com/t/ai-actions-explain-and-ask-ai-anything-returning-errors-in-desktop-app/4667>\
**Category:** Bug Reports\
**Tags:** ai\
**Created:** [March 20, 2025, 2:13pm UTC](https://forum.appflowy.com/t/ai-actions-explain-and-ask-ai-anything-returning-errors-in-desktop-app/4667 "2025-03-20T14:13:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prof\_falkn5](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/prof_falkn5/32/390_2.png) [@prof\_falkn5](https://forum.appflowy.com/u/prof_falkn5)\
**Post date:** [March 20, 2025, 2:13pm UTC](https://forum.appflowy.com/t/ai-actions-explain-and-ask-ai-anything-returning-errors-in-desktop-app/4667/1 "2025-03-20T14:13:53Z")

</div>

Using Desktop app ver 0.8.6 on Windows 11 connected to self-hosted AppFlowy Cloud using Docker Compose derived from [GitHub - AppFlowy-IO/AppFlowy-Cloud: Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.](https://github.com/AppFlowy-IO/AppFlowy-Cloud)

I am selecting text in the editor on a document and then selecting from the available AI options in the hovering menu.  
These options work wonderfully:

- Improve Writing
- Fix Spelling and Grammar
- Make Longer
- Make Shorter

But these return an error in the client:

- Ask AI Anything
- Explain

When I look into the server logs for the AI service I see _fastapi.exceptions.HTTPException: 500: An error occurred while streaming: No ExpertType associated with value 6_ for “Explain” action

and

_fastapi.exceptions.HTTPException: 500: An error occurred while streaming: No ExpertType associated with value 7_ for “Ask AI Anything” action.

The errors are happening in file ‘/usr/src/app/server/app/router/prompt.py’ and when I look into the contents I see that, indeed 6 and 7 are not listed:

```auto
class ExpertType(Enum): 
 IMPROVE_WRITING = 1 
 SPELLING_GRAMMAR = 2 
 MAKE_SHORTER = 3 
 MAKE_LONGER = 4 
 ASK_AI = 5

```

I have tried pulling the latest AI image but the error persists. Has anyone else encountered this?

---

<div class="post-metadata">

**Author:** ![Medve01](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/medve01/32/395_2.png) [@Medve01](https://forum.appflowy.com/u/Medve01)\
**Post date:** [March 24, 2025, 10:57am UTC](https://forum.appflowy.com/t/ai-actions-explain-and-ask-ai-anything-returning-errors-in-desktop-app/4667/2 "2025-03-24T10:57:21Z")

</div>

Yes, I have the same issue and it started to drive me crazy, frankly 🙂  
I have a slightly different setup: running AppFlowy in my homelab and connecting to it from the mac app. I have the same error message on Explain (No ExpertType associated with value 6) and Ask anything (No ExpertType associated with value 7).

I added a bug on Github [[Bug] AI features “Ask AI Anything” and “Explain” failing with ExpertType errors · Issue #7600 · AppFlowy-IO/AppFlowy · GitHub](https://github.com/AppFlowy-IO/AppFlowy/issues/7600)

---

<div class="post-metadata">

**Author:** ![prof\_falkn5](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.appflowy.com/prof_falkn5/32/390_2.png) [@prof\_falkn5](https://forum.appflowy.com/u/prof_falkn5)\
**Post date:** [March 24, 2025, 1:00pm UTC](https://forum.appflowy.com/t/ai-actions-explain-and-ask-ai-anything-returning-errors-in-desktop-app/4667/3 "2025-03-24T13:00:04Z")

</div>

Thanks for the heads-up. Looks like we got an answer there already, which is essentially, “yes, that is expected”.
