Skip to content

Integrate with the new wpai_is_{$slug}_connector_configured filter#55

Merged
jeffpaul merged 1 commit into
developfrom
fix/implement-configured-filter
May 5, 2026
Merged

Integrate with the new wpai_is_{$slug}_connector_configured filter#55
jeffpaul merged 1 commit into
developfrom
fix/implement-configured-filter

Conversation

@dkotter
Copy link
Copy Markdown
Collaborator

@dkotter dkotter commented Apr 24, 2026

Description of the Change

The AI plugin doesn't see the Ollama Connector as being connected within the status dashboard widget since it doesn't require an API key. A new wpai_is_{$slug}_connector_configured filter is being introduced in that plugin that allows individual Connectors to override this behavior.

This PR hooks into that filter and if we have models available, we assume Ollama is connected and return true. This matches what we added in #43

Closes #54

How to test the Change

  1. Install the AI plugin from New filter in the status dashboard widget to set configured status WordPress/ai#473
  2. Pull this PR down
  3. Go to the admin dashboard and ensure Ollama shows as connected in the status widget

Changelog Entry

Added - Ensure the AI plugin sees Ollama as a valid, connected provider within the status dashboard widget

Credits

Props @dkotter, @jeffpaul

Checklist:

Open WordPress Playground Preview

@dkotter dkotter added this to the 1.1.1 milestone Apr 24, 2026
@dkotter dkotter self-assigned this Apr 24, 2026
@dkotter dkotter requested a review from jeffpaul April 24, 2026 18:42
Copy link
Copy Markdown
Collaborator

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and confirmed working as expected, thanks!

@jeffpaul jeffpaul merged commit 0ca0697 into develop May 5, 2026
14 checks passed
@jeffpaul jeffpaul deleted the fix/implement-configured-filter branch May 5, 2026 18:47
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.

AI Status reports connector as not set up

2 participants