Skip to main content
Skip to main content

Drupal AI

Mockingbird

Record a real AI response once, replay it for free while you develop, and use the same recording in FunctionalJavascript tests and CI.

About this video

When you are developing a module for Drupal AI, nothing is as frustrating as having to wait for the OpenAI or Anthropic provider when you know what the response should be. You are only interested in solving your code, but you have to waste money and time using a real provider.

And then you want to run Kernel and Functional tests against your newly developed module, but you do not want to put your API key in the CI, and you do not want every test to run an actual call against the provider. It will cost money, and the provider could have availability problems.

Drupal AI solves this with its own mockup provider, AI Test, that by default exposes a mirror provider: you say Jump, it says Jump. But it can also be used to record actual responses from the AI and replay them over and over, when you are developing or when you are running tests.

The AI Test module is part of the AI core module and can be used by anyone extending it.

Watch the video

0:00

Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

Chapters

Updated 2 min read

Other ways to consume this

Filed under Workflows Drupal AI
AI modified

Parts of this content were produced by AI.

How was AI used?

The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions.