diff --git a/README.md b/README.md index f2be995..cde0b1c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Overview -[OpenAI](https://openai.com/), an AI research organization dedicated to developing beneficial AI for humanity, provides the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction) for accessing its powerful AI models, enabling tasks such as natural language processing and image generation. +[OpenAI](https://openai.com/), an AI research organization focused on creating friendly AI for humanity, offers the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction) to access its powerful AI models for tasks like natural language processing and image generation. The `ballarinax/openai.chat` package offers functionality to connect and interact with [chat completion related endpoints of OpenAI REST API v1](https://platform.openai.com/docs/api-reference/chat) Enabling seamless interaction with the advanced GPT-4 models developed by OpenAI for diverse conversational and text generation tasks. @@ -69,7 +69,7 @@ Now, you can utilize available connector operations. public function main() returns error? { // Create a chat completion request. - CreateChatCompletionRequest request = { + chat:CreateChatCompletionRequest request = { model: "gpt-4o-mini", messages: [{ "role": "user", @@ -77,7 +77,7 @@ public function main() returns error? { }] }; - CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); + chat:CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); } ``` diff --git a/ballerina/Module.md b/ballerina/Module.md index a466a1c..459fdd2 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -1,6 +1,6 @@ ## Overview -[OpenAI](https://openai.com/), an AI research organization dedicated to developing beneficial AI for humanity, provides the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction) for accessing its powerful AI models, enabling tasks such as natural language processing and image generation. +[OpenAI](https://openai.com/), an AI research organization focused on creating friendly AI for humanity, offers the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction) to access its powerful AI models for tasks like natural language processing and image generation. The `ballarinax/openai.chat` package offers functionality to connect and interact with [chat completion related endpoints of OpenAI REST API v1](https://platform.openai.com/docs/api-reference/chat) Enabling seamless interaction with the advanced GPT-4 models developed by OpenAI for diverse conversational and text generation tasks. @@ -60,7 +60,7 @@ Now, you can utilize available connector operations. public function main() returns error? { // Create a chat completion request. - CreateChatCompletionRequest request = { + chat:CreateChatCompletionRequest request = { model: "gpt-4o-mini", messages: [{ "role": "user", @@ -68,7 +68,7 @@ public function main() returns error? { }] }; - CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); + chat:CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); } ``` diff --git a/ballerina/Package.md b/ballerina/Package.md index a466a1c..459fdd2 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -1,6 +1,6 @@ ## Overview -[OpenAI](https://openai.com/), an AI research organization dedicated to developing beneficial AI for humanity, provides the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction) for accessing its powerful AI models, enabling tasks such as natural language processing and image generation. +[OpenAI](https://openai.com/), an AI research organization focused on creating friendly AI for humanity, offers the [OpenAI API](https://platform.openai.com/docs/api-reference/introduction) to access its powerful AI models for tasks like natural language processing and image generation. The `ballarinax/openai.chat` package offers functionality to connect and interact with [chat completion related endpoints of OpenAI REST API v1](https://platform.openai.com/docs/api-reference/chat) Enabling seamless interaction with the advanced GPT-4 models developed by OpenAI for diverse conversational and text generation tasks. @@ -60,7 +60,7 @@ Now, you can utilize available connector operations. public function main() returns error? { // Create a chat completion request. - CreateChatCompletionRequest request = { + chat:CreateChatCompletionRequest request = { model: "gpt-4o-mini", messages: [{ "role": "user", @@ -68,7 +68,7 @@ public function main() returns error? { }] }; - CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); + chat:CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request); } ```