Repository navigation
Archive AI operations and Card Select, now built into Directus 12.7 #337
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
2b4ec72
69c2ccb
f20ebe4
428b9dd
3c90bc9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,20 @@ | ||||||
| # DEPRECATED | ||||||
|
|
||||||
| > **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.** | ||||||
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. small thing, could we add "(Directus 12.7+)" here like the Card Select notice has? AI Text and AI Image aren't in 12.6 or earlier, and this extension's
Suggested change
Same for the other four AI READMEs. The "Use instead" column in |
||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| # AI Writer Operation | ||||||
|
|
||||||
| Generate text based on a written prompt within Directus Flows with this custom operation, powered by [OpenAI's Text Generation API]([https://.com](https://openai.com/product)), [Anthropic](https://www.anthropic.com/) [MistralAi (via Replicate)](https://replicate.com/mistralai/mistral-7b-v0.1) and [Meta's LLama (via Replicate)](https://replicate.com/meta/meta-llama-3.1-405b-instruct). | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| ## Configuration | ||||||
| This operation contains some configuration options - an Api-Key, a selection of which model and prompt to use, and a text input. The text input can contain references like `{{$last.data}}` to refer to data available in the current flow. The prompt can be customised further using the optional Messages repeater field. The operation returns a string of the transformed or generated text. | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| ### API-Keys | ||||||
| You can generate your API-Keys on the follosing sites: | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,13 @@ | ||||||
| # DEPRECATED | ||||||
|
|
||||||
| > **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.** | ||||||
| > Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I can tell, existing fields don't move over to the core interfaces on their own. Core registers them as The choices themselves should mostly carry over when you switch, since core uses the same Since this is the most used one in the PR, could we add a line about switching fields before uninstalling?
Suggested change
|
||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| # Card Select Interfaces | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| A bundle of card-based interfaces for Directus that provides selection options for both radio (single select) and checkbox (multiple select) inputs. | ||||||
|
|
||||||
|
|
@@ -20,19 +27,19 @@ A card-based single selection interface that replaces the standard radio button | |||||
|
|
||||||
| Field Types: String, Integer, Float, Decimal, Big Integer | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
bryantgillespie marked this conversation as resolved.
Resolved
|
||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| ### Checkbox Cards Interface | ||||||
|
|
||||||
| A card-based multiple selection interface that replaces standard checkboxes with interactive cards. Ideal for allowing users to select multiple options in a more engaging way. Supports multiple selections. | ||||||
|
|
||||||
| Field Types: JSON, CSV | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| ## Configuration Options | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small thing,
focal_point_xandfocal_point_yare pixel values (integer columns, and core's own AI files prompt describes them as pixels from the left edge). If the model comes back with 0–1 or percentages, the crop ends up stuck near the top-left. Maybe worth saying to ask for pixels and pass the image's width and height in the prompt?