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

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.

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:

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?

Yes, I have the same issue and it started to drive me crazy, frankly :slight_smile:
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

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