Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Vllm rejecting requests that have empty tools list

Open Beginner friendly
#448 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php
Domain
api, backend

Research direction

Start with lib/Service/OpenAiAPIService.php and inspect the tools handling around the condition reported in the issue. Reproduce by sending a message through Assistant to a vLLM model and check how requests with an empty tools list are formed. Done when the request succeeds without a 400 error and existing tool requests still work.

Written by the indexing model from the issue text.

Description

bug
Which version of integration_openai are you using?

latest

Which version of Nextcloud are you using?

Latest

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

No response

Describe the Bug

after the update from yesterday, i saw that messages sent through the assistant are all being rejected with 400 error with the error message being that the "tools" parameter being empty. i managed to fix it by changing a line inside the nextcloud-aio-nextcloud contianer in the file /var/www/html/custom_apps/integration_openai/lib/Service/OpenAiAPIService.php.
how it was:

if ($tools !== null) {

after change:

if (!empty($tools)) {

and now it works fine. so i suggest you guys take a look at this (andif i posted in the wrong repo, please tell me so so i can post in the correct one).

Expected Behavior

responds

To Reproduce

send a message through assistant to an Openai supoorted model running on Vllm

Dominant language
PHP
Stars
76
Forks
36
Avg merge
2d 16h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/integration_openai

All issues in nextcloud/integration_openai

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.