Nextcloud AI not working

,

The Basics

  • Nextcloud Server version:
    • 30.0.2
  • Operating system and version:
    • Ubuntu Server
  • Web server and version:
    • Apache
  • PHP version :
    • 8.3
  • Installation method
    • Apache, PHP, mySQL

Summary of the issue you are facing:

The AI ​​doesn’t work; neither with Ollama nor with LocalAI. The AI ​​runs on the same network, but with a different IP address. Regardless of whether I specify the AI ​​endpoint via https:// or http://, I always get the error

[Error] Failed to load resource: the server responded with a status of 417 (Expectation Failed) (check_generation, line 0).

This gives the answer:

{
"task_status": 1
}

“allow_remote_connections” is activated in the Nextcloud config.

How can I fix this problem?

Thank you in advance and a happy new year,
schBenedikt.