diff --git a/src/main/java/io/kestra/plugin/openai/ChatCompletion.java b/src/main/java/io/kestra/plugin/openai/ChatCompletion.java index cbb2a5e..faccfd8 100644 --- a/src/main/java/io/kestra/plugin/openai/ChatCompletion.java +++ b/src/main/java/io/kestra/plugin/openai/ChatCompletion.java @@ -25,13 +25,13 @@ @Getter @NoArgsConstructor @Schema( - title = "Given a prompt, get a response from an LLM using the [OpenAI’s Chat Completions API](https://platform.openai.com/docs/api-reference/chat/create)", - description = "For more information, refer to the [Chat Completions API docs](https://platform.openai.com/docs/guides/gpt/chat-completions-api)" + title = "Given a prompt, get a response from an LLM using the [OpenAI’s Chat Completions API](https://platform.openai.com/docs/api-reference/chat/create).", + description = "For more information, refer to the [Chat Completions API docs](https://platform.openai.com/docs/guides/gpt/chat-completions-api)." ) @Plugin( examples = { @Example( - title = "Based on a prompt input, generate a completion response and pass it to a downstream task", + title = "Based on a prompt input, generate a completion response and pass it to a downstream task.", full = true, code = { "id: openAI", diff --git a/src/main/java/io/kestra/plugin/openai/CreateImage.java b/src/main/java/io/kestra/plugin/openai/CreateImage.java index 278f016..924d7ff 100644 --- a/src/main/java/io/kestra/plugin/openai/CreateImage.java +++ b/src/main/java/io/kestra/plugin/openai/CreateImage.java @@ -31,15 +31,13 @@ @Getter @NoArgsConstructor @Schema( - title = "Given a prompt, create an image", - description = "For more information, refer to the [OpenAI Image Generation API docs](https://platform.openai.com/docs/api-reference/images/create)" + title = "Given a prompt, create an image.", + description = "For more information, refer to the [OpenAI Image Generation API docs](https://platform.openai.com/docs/api-reference/images/create)." ) @Plugin( examples = { @Example( code = """ - id: imageGeneration - type: io.kestra.plugin.openai.CreateImage prompt: A funny cat in a black suit apiKey: download: true @@ -108,7 +106,7 @@ public CreateImage.Output run(RunContext runContext) throws Exception { public static class Output implements io.kestra.core.models.tasks.Output { @Schema( - title = "Generated images" + title = "Generated images." ) private List images; } diff --git a/src/main/java/io/kestra/plugin/openai/OpenAiInterface.java b/src/main/java/io/kestra/plugin/openai/OpenAiInterface.java index 894d1f0..9687002 100644 --- a/src/main/java/io/kestra/plugin/openai/OpenAiInterface.java +++ b/src/main/java/io/kestra/plugin/openai/OpenAiInterface.java @@ -7,7 +7,7 @@ public interface OpenAiInterface { @Schema( - title = "The OpenAI API key" + title = "The OpenAI API key." ) @PluginProperty(dynamic = true) @NotNull