Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ai-writer-operation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@directus-labs/ai-writer-operation",
"type": "module",
"version": "1.4.1",
"version": "1.4.2",
"description": "Use OpenAI, Claude, Meta and Mistral Text Generation APIs to generate text.",
"author": "Directus Labs",
"contributors": [
Expand Down
21 changes: 4 additions & 17 deletions packages/ai-writer-operation/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,9 @@ export default defineOperationApp({
];

const openAiModels = [
{ text: 'GPT-4.1', value: 'gpt-4.1-2025-04-14' },
{ text: 'GPT-4.1 Mini', value: 'gpt-4.1-mini-2025-04-14' },
{ text: 'GPT-4.1 Nano', value: 'gpt-4.1-nano-2025-04-14' },
{ text: 'GPT-4.5 Preview', value: 'gpt-4.5-preview-2025-02-27' },
{ text: 'GPT-4o', value: 'gpt-4o-2024-08-06' },
{ text: 'GPT-4o Mini', value: 'gpt-4o-mini-2024-07-18' },
{ text: 'O1', value: 'o1-2024-12-17' },
{ text: 'O1 Pro', value: 'o1-pro-2025-03-19' },
{ text: 'O1 Mini', value: 'o1-mini-2024-09-12' },
{ text: 'O3', value: 'o3-2025-04-16' },
{ text: 'O3 Mini', value: 'o3-mini-2025-01-31' },
{ text: 'O4 Mini', value: 'o4-mini-2025-04-16' },
{ text: 'GPT-4 Turbo', value: 'gpt-4-turbo' },
{ text: 'GPT-4', value: 'gpt-4' },
{ text: 'GPT-3.5 Turbo', value: 'gpt-3.5-turbo' },
{ text: 'O1 (legacy)', value: 'o1' },
{ text: 'O1 Mini (legacy)', value: 'o1-mini' },
{ text: "GPT-4o", value: "gpt-4o" },
{ text: "GPT-4 Turbo", value: "gpt-4-turbo" },
{ text: "GPT-3.5 Turbo", value: "gpt-3.5-turbo" },
];

const replicateModels = [
Expand Down Expand Up @@ -150,6 +136,7 @@ export default defineOperationApp({
required: true,
interface: 'select-dropdown',
options: {
allowOther: true,
choices: getModels(context.aiProvider),
},
width: 'half',
Expand Down