From ea9d80f27fa54fe8a30a15b121c618d8260ce877 Mon Sep 17 00:00:00 2001 From: manodyaSenevirathne Date: Mon, 12 Aug 2024 11:03:08 +0530 Subject: [PATCH] Remove unnecessary newlines and typos --- README.md | 3 --- ballerina/Module.md | 8 -------- ballerina/Package.md | 4 ---- 3 files changed, 15 deletions(-) diff --git a/README.md b/README.md index 918760d..a1d4485 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ To use the OpenAI Connector, you must have access to the OpenAI API through a [O 1. Open the [OpenAI Platform Dashboard](https://platform.openai.com). - 2. Navigate to **Dashboard** -> **API keys**. Navigate to API key section @@ -33,7 +32,6 @@ To use the OpenAI Connector, you must have access to the OpenAI API through a [O 5. Store the API key securely to use in your application. Generated New API key - ## Quickstart To use the `OpenAI Chat` connector in your Ballerina application, update the `.bal` file as follows: @@ -85,7 +83,6 @@ public function main() returns error? { }; - // Call the API. CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); } ``` diff --git a/ballerina/Module.md b/ballerina/Module.md index 1e8de07..e047252 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -12,7 +12,6 @@ To use the OpenAI Connector, you must have access to the OpenAI API through a [O 1. Open the [OpenAI Platform Dashboard](https://platform.openai.com). - 2. Navigate to **Dashboard** -> **API keys**. Navigate to API key section @@ -23,12 +22,8 @@ To use the OpenAI Connector, you must have access to the OpenAI API through a [O Create New API key 5. Store the API key securely to use in your application. -Generated New API keyon Create secret key. Generated New API key -5. Store the API key securely to use in your application. - - ## Quickstart To use the `OpenAI Chat` connector in your Ballerina application, update the `.bal` file as follows: @@ -66,7 +61,6 @@ Now, you can utilize available connector operations. #### Generate a response for given message ```ballerina - public function main() returns error? { // Create a chat completion request. @@ -80,7 +74,6 @@ public function main() returns error? { }; - // Call the API. CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); } ``` @@ -91,7 +84,6 @@ public function main() returns error? { bal run ``` - ## Examples The `OpenAI Chat` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-openai.chat/tree/main/examples/), covering the following use cases: diff --git a/ballerina/Package.md b/ballerina/Package.md index da42799..e047252 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -12,7 +12,6 @@ To use the OpenAI Connector, you must have access to the OpenAI API through a [O 1. Open the [OpenAI Platform Dashboard](https://platform.openai.com). - 2. Navigate to **Dashboard** -> **API keys**. Navigate to API key section @@ -62,7 +61,6 @@ Now, you can utilize available connector operations. #### Generate a response for given message ```ballerina - public function main() returns error? { // Create a chat completion request. @@ -76,7 +74,6 @@ public function main() returns error? { }; - // Call the API. CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); } ``` @@ -87,7 +84,6 @@ public function main() returns error? { bal run ``` - ## Examples The `OpenAI Chat` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-openai.chat/tree/main/examples/), covering the following use cases: