AzureAI.Community.OpenAI.Bot.Builder.Prompt
1.0.8--beta.2
dotnet add package AzureAI.Community.OpenAI.Bot.Builder.Prompt --version 1.0.8--beta.2
NuGet\Install-Package AzureAI.Community.OpenAI.Bot.Builder.Prompt -Version 1.0.8--beta.2
<PackageReference Include="AzureAI.Community.OpenAI.Bot.Builder.Prompt" Version="1.0.8--beta.2" />
paket add AzureAI.Community.OpenAI.Bot.Builder.Prompt --version 1.0.8--beta.2
#r "nuget: AzureAI.Community.OpenAI.Bot.Builder.Prompt, 1.0.8--beta.2"
// Install AzureAI.Community.OpenAI.Bot.Builder.Prompt as a Cake Addin #addin nuget:?package=AzureAI.Community.OpenAI.Bot.Builder.Prompt&version=1.0.8--beta.2&prerelease // Install AzureAI.Community.OpenAI.Bot.Builder.Prompt as a Cake Tool #tool nuget:?package=AzureAI.Community.OpenAI.Bot.Builder.Prompt&version=1.0.8--beta.2&prerelease
AzureAI.Community.OpenAI.Bot.Builder.Prompt - Preview
Learn how to implement this package by watching video tutorials available here.
Description
This package contains OpenAI prompts to provide support for use in Bot Composer.
Currently, the following Prompts are available:
Important Note:
Changes for Bot Composer to target Framework NET 7.0 and above
Composer Component Installation
Follow these steps to install the component:
- Navigate to the Bot Framework Composer Package Manager.
- Change the filter to Community packages.
- Search for 'AzureAI' and install
AzureAI.Community.OpenAI.Bot.Builder.Prompt
.
After installing the package, you will find Azure OpenAI menus available in the main menu.
Prompt Completions
Prompt Completions: Returns textual completions as configured for a given prompt.
Example
- Endpoint: https://github.com/Azure-AI-Community/OpenAI-BotBuilder
- API Key: 123131asdasd2132132
- Deployment or Model Name: davinici
Prompt Configuration
This section is used to pass the prompt and parameter configurations, and Prompt Configuration is in required JSON format.
Note: The "Prompt" parameter is a required field; the rest of the parameters are optional.
Here's a complete config structure example:
{
"Prompts": ["prompt1", "prompt2"],
"GenerationSampleCount": 3,
"Temperature": 0.75,
"User": "AzureAICommunityUser",
"Echo": true,
"LogProbabilityCount": 1,
"MaxTokens": 512,
"TokenSelectionBiases": {
"25996": -100,
"35484": -100,
"40058": -100,
"15991": -100
},
"StopSequences": ["\n"],
"ChoicesPerPrompt": 3,
"FrequencyPenalty": 0.5,
"NucleusSamplingFactor": 0.9,
"PresencePenalty": 0.1
}
output
To obtain the result, utilize ${turn.OpenAI}
.
Prompt ChatCompletions
Description: Returns chat completions for the provided chat context message.
Example
- Endpoint: https://github.com/Azure-AI-Community/OpenAI-BotBuilder
- API Key: 123131asdasd2132132
- Deployment or Model Name: GPT4
Prompt Chat Configuration
This section is used to pass the ChatMessages
and parameter configurations, and Prompt Configuration is in the required JSON format.
Note: The "ChatMessages" parameter is a required field; the rest of the parameters are optional.
Here is a complete config structure:
{
"ChoiceCount": 1,
"FrequencyPenalty": 0.5,
"MaxTokens": 512,
"NucleusSamplingFactor": 0.9,
"PresencePenalty": 0.1,
"StopSequences": ["\\n"],
"Temperature": 0.75,
"TokenSelectionBiases": {
"25996": -100,
"35484": -100,
"40058": -100,
"15991": -100
},
"User": "AzureAICommunityUser",
"ChatMessages": [
{
"Text": "Hello, how are you?",
"Sender": "user"
},
{
"Text": "I'm fine, thank you. And you?",
"Sender": "Assistant"
}
]
}
output
To obtain the result, utilize ${turn.OpenAI}
DALL-E
DALL-E Image Generation
Prompt Configuration
- Endpoint: Connect to OpenAI
- API Key: Your OpenAI API Key
- Prompt: Specify the type of image you want to create.
- Image Size: Desired image resolution size.
- Image Count: Number of images to generate.
- User: A unique identifier representing your end-user, which aids in monitoring and abuse detection.
output
To obtain the result, utilize ${turn.OpenAI}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- Azure.AI.OpenAI (>= 1.0.0-beta.6)
- Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime (>= 4.14.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.8--beta.2 | 320 | 9/12/2023 |
1.0.7 | 455 | 8/17/2023 |
1.0.6 | 141 | 8/16/2023 |
1.0.5 | 110 | 8/16/2023 |
1.0.4 | 115 | 8/16/2023 |