Skip to content

Fix slugs #657

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

Merged
merged 2 commits into from
Feb 6, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Internationalization
page_title: AIPrompt Internationalization
description: "Internationalization of the Telerik WebForms AIPrompt component."
slug: aiprompt/server-side-programming/internationalization
slug: aiprompt/accessibility/internationalization
tags: internationalization
published: True
position: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Keyboard Navigation
page_title: AIPrompt Keyboard Navigation
description: "Learn about the Keyboard Navigation of the WebForms AIPrompt"
slug: templates/keyobard-navigation
slug: aiprompt/accessibility/keyobard-navigation
position: 3
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ You are using a product version released outside the validity period of your per

* [Download and Install License Key]({%slug getting-started/activating-your-license/setting-up-your-license%})
* [Licensing FAQ]({%slug getting-started/activating-your-license/licensing-faq%})
* [Use License Keys in CI/CD]({%slug deployment_license_key_aspnetcore%})
8 changes: 2 additions & 6 deletions knowledge-base/aiprompt-integration-with-openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,19 @@ published: True
res_type: kb
---

# OpenAI Integration
## Description

The WebForms AIPrompt allows you to easily integrate it with a Chat API service such as ChatGPT. This is thanks to the [OnPromptRequest]({%slug aiprompt/client-side-programming/events#prompt-request%}) event that returns the input text (prompt), and sets the output.

### Using with an OpenAI key

If you have an OpenAI subscription, you can directly use it with the AIPrompt component.

>note IMPORTANT: Never share your API key with anyone or push it to GitHub/GitLab! The key will automatically be disabled by OpenAI and you will need to create a new one.

### Installing Required Dependencies

Since we got the API key, now we need to install the **OpenAI** Nuget package, in order to use their services. Go to the Nuget Package Manager, search for OpenAI and install the package. For more information on the library itself, you can check [The official .NET library for the OpenAI API](https://github.com/openai/openai-dotnet).

![Installing OpenAI](images/aiprompt-openai-integration/nuget.png "Installing OpenAI")

### Integration
### Solution

Now let's start the actual integration. For it, we will use the [Dependency injection](https://en.wikipedia.org/wiki/Dependency_injection) tehnique, to make code scalable for the future.

Expand Down