Assistance with Nextcloud Assistant Setup and OpenAI API Integration

Assistance with Nextcloud Assistant Setup and OpenAI API Integration

Greetings,

I am currently running Nextcloud AIO version 29.0.6 on a device with 8 cores CPU and 16 GB of RAM. I am encountering two issues that I need assistance with:

  1. Nextcloud Assistant Not Functioning:
    I have followed the default settings in the Artificial Intelligence section, and for tasks such as Context Chat and Free Prompt, I have set Nextcloud Assistant Context Chat as the AI provider. However, I continue to receive the following error message:

    “AI text generation task for ‘Nextcloud Assistant’ has failed.”

    Additionally, I am seeing this error:

    “RuntimeException Error during request to ExApp (context_chat_backend): ExApp context_chat_backend not found.”

    I would appreciate guidance on how to resolve this issue and ensure that Nextcloud Assistant is functioning properly.

  2. Verifying OpenAI API Integration:
    I am using a paid subscription to ChatGPT and have integrated it using the API key provided by OpenAI. I would like to confirm that the integration is correctly configured and that there are no issues preventing proper communication with the OpenAI API.

I would greatly appreciate a step-by-step guide for resolving these issues, including:

  • How to fix Nextcloud Assistant.
  • How to verify and correct the integration between Nextcloud Assistant and the OpenAI API.
  • The necessary API settings or permissions to ensure smooth operation.
  • Any additional configurations that might be required for optimal performance.

Thank you in advance for your assistance. I look forward to your guidance.

Best regards,
Tony

1 Like

I have the same that LocalAI always fails.
I tried to find out if the language model is installed, but cannot find anything about it.

Is there some tutorial how to solve this problem?

Hello,
I had the same issue with Nextcloud 29, :grin:
but I was able to fix it by adding the following command to the cron job:
*/5 * * * * /usr/bin/php -f /var/www/html/nextcloud/cron.php

After that, I uninstalled and then reinstalled the Nextcloud Assistant app, as well as the OpenAI and LocalAI Integration apps.

Check if the ExApp backend is installed and running; update or reinstall it if needed, and confirm the Context Chat backend URL is correct. For the OpenAI API, double-check your API key for typos and permissions. Test the API with a simple cURL command to ensure it’s working outside Nextcloud. Also, review nextcloud.log for errors and make sure no firewall rules are blocking the AI service.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.