Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor changes in docs #9

Merged
merged 2 commits into from
Aug 16, 2024
Merged
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
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
Loading