-
Notifications
You must be signed in to change notification settings - Fork 14
Not working with any provider!!! #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Clear installation of:
Here is the cron container log: Here is the LocalAI container log:
At 19:16 I opened two browser tabs with NextCloud. In the first tab, I launched Nextcloud Assistant "Chat with AI" and entered a prompt. Then, in the second tab, I launched Nextcloud Assistant “Generate image” and entered a prompt to generate 3 images. At 19:20, a response from LocalAI appeared in both tabs. It looks like all requests are queued in a cron job queue rather than being executed immediately. Clear installation of:
works correctly. All requests are executed immediately. |
I confirm this behavior, the Chat only answers once every 5 minutes (9:00 / 9:05 / 9:10 / ...) |
Same. I am tring to use openai (just because it's cheap for whisper), and it takes so long to respond. |
I found a workaround to create a worker that will process requests as soon as they arrive. It still queue them, but if you have no other request it will be processed immediately. You can also run more workers to parallel process Just use the following command (from you NC installation, or use the "docker exec" if using Docker) and it should work
Let me know if it works for you |
This works indeed! But it's only a workaround. Hopefully this information will point the devs in the right direction. As far as I can tell a LLM request should trigger a worker and it is not, probably the cron job triggers the same worker and that explains why these LLM requests run every 5 minutes. |
Running a worker |
I run
I get
|
Did you replace the all-in-one ID and nextcloud-aio ID with an number matching the user ID the AIO is using? When running the command without the -u param, it will return something like :
In that case the integer you should use is 33, which would be the value to be added in you command, as "-u 33" If using the standard AIO containers from Nextcloud, you should have a command like:
|
Hi, sorry for the delayed documentation, the app is working, it just scheduled cron jobs for every task due to a change in the underlying architecture (which means 5 mins delay for each task). @jon-bit It is available since NC 30. |
How does this fit for the chat feature of nextcloud assistant? This "workaround" can't be the solution, right? Will this be changed again? Or configurable? I see why you would want to schedule that for large user bases, but 5 minutes? And the solution is to run a binary in screen? |
Which version of integration_openai are you using?
3.1.0
Which version of Nextcloud are you using?
v30.0.0
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
chrome
Describe the Bug
..have set with localai(separate server), Mistral AI, OPENAI...none work
Expected Behavior
chat with ai
To Reproduce
set localai server ...make accound mistrall ai...etc
The text was updated successfully, but these errors were encountered: