BootstrapBlazor.OpenAI
0.2.0
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BootstrapBlazor.OpenAI --version 0.2.0
NuGet\Install-Package BootstrapBlazor.OpenAI -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BootstrapBlazor.OpenAI" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BootstrapBlazor.OpenAI --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BootstrapBlazor.OpenAI, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BootstrapBlazor.OpenAI as a Cake Addin #addin nuget:?package=BootstrapBlazor.OpenAI&version=0.2.0 // Install BootstrapBlazor.OpenAI as a Cake Tool #tool nuget:?package=BootstrapBlazor.OpenAI&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Blazor OpenAI 组件
示例:
https://www.blazor.zone/OpenAI
使用方法:
nuget包
BootstrapBlazor.OpenAI
_Imports.razor 文件 或者页面添加 添加组件库引用
@using BootstrapBlazor.Components
Program.cs 文件添加
builder.Services.AddTransient<OpenAiClientService>();
Key
appsettings.json
或者其他配置文件添加配置"OpenAIKey": "OpenAIKey" "AzureOpenAIUrl": "AzureOpenAI Endpoint, 配置后使用AzureOpenAI" "AzureOpenAIKey": "AzureOpenAI Key"
Razor页面
<OpenAI /> <OpenAI EnableSpeech="false" />
4.配置文件参数说明
参数 | 说明 | 默认值 |
---|---|---|
OpenAIKey | OpenAIKey | |
AzureOpenAIUrl | AzureOpenAI Endpoint, 配置后使用AzureOpenAI | |
AzureOpenAIKey | AzureOpenAI Key | |
MaxTokens | 完成时生成的最大令牌数 | 500 |
Temperature | 浮点数,控制模型的输出的多样性。值越高,输出越多样化。值越低,输出越简单 | 0.5 |
ShowOptions | 显示选项 | true |
EnableSpeech | 启用语音识别/合成 | true |
SpeechLanguage | 语音模块语言,默认中文 | zh-CN |
更新历史
v0.2
- 添加语音识别/合成
Blazor 组件
AlexChow
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Azure.AI.OpenAI (>= 1.0.0-beta.7)
- Betalgo.OpenAI (>= 6.8.5)
- BootstrapBlazor (>= 7.10.7)
- BootstrapBlazor.WebAPI (>= 7.4.5)
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- Azure.AI.OpenAI (>= 1.0.0-beta.7)
- Betalgo.OpenAI (>= 6.8.5)
- BootstrapBlazor (>= 7.10.7)
- BootstrapBlazor.WebAPI (>= 7.4.5)
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BootstrapBlazor.OpenAI:
Package | Downloads |
---|---|
BootstrapBlazor.Densen.All
Blazor 组件懒人包 |
GitHub repositories
This package is not used by any popular GitHub repositories.