Skip to content

Replace the integration_openai commands that fail as written - #10

Merged
oleksandr-nc merged 2 commits into
mainfrom
ai-stack/verified-commands
Sep 14, 2026
Merged

oleksandr-nc merged 2 commits into
mainfrom
ai-stack/verified-commands

Conversation

@oleksandr-nc

Copy link
Copy Markdown
Collaborator

Follow-up to #6, re-running its commands on master with integration_openai 5.0.0 against an OpenAI-compatible endpoint. The model-cache finding in #6 is right; two of the commands around it are not:

  • GET /index.php/apps/integration_openai/models with basic auth answers 412 CSRF check failed (the route has no NoCSRFRequired), so the jq check could never pass. The refresh now runs the RefreshModels job via occ background-job:execute --force-execute and checks config:app:get integration_openai models. Verified: the stored list fills and, after the Redis flush, the model enum on core:text2text lists the endpoint's models.
  • composer install as www-data fails in the host-owned clone the no-chown flow produces ("vendor could not be created"). As the host uid with COMPOSER_HOME=/tmp/composer it works, same pattern as the Node step.

Smaller: on master app:install itself prints "not compatible" (the package is still downloaded), so app:install --force replaces the install-then-enable sequence; -it is dropped from the redis-cli flushall lines because it fails without a TTY; the --no-scripts install now says which providers it breaks (nothing exists under OCA\OpenAi\Vendor without the php-scoper hook); and "already required by the jq check" is corrected, the task type is listed even with an empty model list.

The admin /models GET answers 412 with basic auth, so the model refresh now runs the RefreshModels job through occ. composer runs as the host uid, since www-data cannot create vendor/ in a host-owned checkout. app:install --force replaces the install-then-enable dance on master, -it is dropped from the redis flush, and the no-scripts install says which providers it breaks.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc
oleksandr-nc force-pushed the ai-stack/verified-commands branch from 0bb8870 to c96df50 Compare September 14, 2026 12:48
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc
oleksandr-nc marked this pull request as ready for review September 14, 2026 13:07
@oleksandr-nc
oleksandr-nc merged commit 23dade9 into main Sep 14, 2026
4 checks passed
@oleksandr-nc
oleksandr-nc deleted the ai-stack/verified-commands branch September 14, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant