Skip to content

Can't get assistant to work with openai "Assistant error" #94

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

Open
jon-bit opened this issue Apr 24, 2024 · 6 comments
Open

Can't get assistant to work with openai "Assistant error" #94

jon-bit opened this issue Apr 24, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@jon-bit
Copy link

jon-bit commented Apr 24, 2024

Which version of integration_openai are you using?

2.0.0

Which version of Nextcloud are you using?

28.0.4.1

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Brave

Describe the Bug

When I have the asstent to get requests from open ai I get:

"Text generation error: Failed to run or schedule a task"

on most things (but not all). When I to STT I get

"Failed to schedule transcription:

failure
500
Internal Server Error"

and if I use the quick app in next cloud instead of the builtin tools in files I get

Assistant error

Expected Behavior

it does Textgen or STT

To Reproduce

install openai integration app and set to the API to anything (blank, "https://api.openai.com", "https://api.openai.com/v1/" is what I tried) and try any AI things. It won't work(at least for me).

@jon-bit jon-bit added the bug Something isn't working label Apr 24, 2024
@jon-bit
Copy link
Author

jon-bit commented Apr 24, 2024

I got image to text working (by setting the URL to "https://api.openai.com/") but when I do STT The error log says this
OCA\\Assistant\\Controller\\SpeechToTextApiController::transcribeAudio(): Argument #1 ($appId) must be of type string, null given, called in /var/www/html/lib/private/AppFramework/Http/Dispatcher.php on line 230","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php in the message

@manatwork81
Copy link

I have the same Problem NC29.

In Log:
TypeError
OCA\OpenAi\Service\OpenAiAPIService::getExtraParams(): Return value must be of type ?array, int returned
LanguageModel call using provider OpenAI failed

nc29

No Idea what the second Line mean? empty i got an error.

Any Idea?

julien-nc added a commit that referenced this issue May 6, 2024
@julien-nc
Copy link
Member

julien-nc commented May 6, 2024

@manatwork81 06f695b should fix this. It will be included in the next integration_openai release. For now you can set an empty object as extra params: {}. It will work.

@jon-bit It's not clear what happens to you. It is most likely a bug in the assistant because integration_openai is not involved when scheduling a job but when the job runs. I'll have a look.

@julien-nc
Copy link
Member

@jon-bit Found and fixed the issue. Fix is included in v1.0.9 which is out now. Could you confirm submitting an audio transcription task with the picker works now?

@julien-nc julien-nc mentioned this issue May 6, 2024
@julien-nc
Copy link
Member

@manatwork81 integration_openai v2.0.1 is out. Invalid values for extra llm params are now correctly handled.

@juergen852
Copy link

juergen852 commented Jun 20, 2024

I still get the error
"Failed to save OpenAI admin options: "Invalid type for key: request_timeout. Expected integer, got string""
using NC29 with OpenAI and LocalAI integration Version 2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants