Skip to content

Commit

Permalink
Merge pull request #9 from manodyaSenevirathne/main
Browse files Browse the repository at this point in the history
minor changes in docs
  • Loading branch information
NipunaRanasinghe authored Aug 16, 2024
2 parents bc7a075 + a6d616f commit 0b21dd0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -69,15 +69,15 @@ 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",
"content": "What is Ballerina programming language?"
}]
};
CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request);
chat:CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request);
}
```

Expand Down
6 changes: 3 additions & 3 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -60,15 +60,15 @@ 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",
"content": "What is Ballerina programming language?"
}]
};
CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request);
chat:CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request);
}
```

Expand Down
6 changes: 3 additions & 3 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -60,15 +60,15 @@ 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",
"content": "What is Ballerina programming language?"
}]
};
CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request);
chat:CreateChatCompletionResponse response = check openAIChat->/chat/completions.post(request);
}
```

Expand Down

0 comments on commit 0b21dd0

Please sign in to comment.