BootstrapBlazor.OpenAI 8.0.1

Prefix Reserved
dotnet add package BootstrapBlazor.OpenAI --version 8.0.1                
NuGet\Install-Package BootstrapBlazor.OpenAI -Version 8.0.1                
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="8.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BootstrapBlazor.OpenAI --version 8.0.1                
#r "nuget: BootstrapBlazor.OpenAI, 8.0.1"                
#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=8.0.1

// Install BootstrapBlazor.OpenAI as a Cake Tool
#tool nuget:?package=BootstrapBlazor.OpenAI&version=8.0.1                

Blazor OpenAI 组件

image

示例:

https://www.blazor.zone/OpenAI

https://blazor.app1.es/OpenAI

使用方法:

  1. nuget包

    BootstrapBlazor.OpenAI
    
  2. _Imports.razor 文件 或者页面添加 添加组件库引用

    @using BootstrapBlazor.Components
    
  3. Program.cs 文件添加

    builder.Services.AddTransient<OpenAiClientService>();
    
  4. Key

    appsettings.json或者其他配置文件添加配置

    "OpenAIKey": "OpenAIKey"
    "AzureOpenAIUrl": "AzureOpenAI Endpoint, 配置后使用AzureOpenAI"
    "AzureOpenAIKey": "AzureOpenAI Key"
    
  5. 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

  • 添加语音识别/合成

v0.3

  • 添加参数配置

Blazor 组件

条码扫描 ZXingBlazor nuget stats

图片浏览器 Viewer

手写签名 SignaturePad

定位/持续定位 Geolocation

屏幕键盘 OnScreenKeyboard

百度地图 BaiduMap

谷歌地图 GoogleMap

蓝牙和打印 Bluetooth

PDF阅读器 OpenAI.GPT

文件系统访问 FileSystem

光学字符识别 OCR

电池信息/网络信息 WebAPI

文件预览 FileViewer

视频播放器 VideoPlayer

图像裁剪 ImageCropper

视频播放器 BarcodeGenerator

AlexChow

今日头条 | 博客园 | 知乎 | Gitee | GitHub

Product 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 is compatible.  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.

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.

Version Downloads Last updated
8.0.1 280 12/9/2023
8.0.0 138 11/15/2023
0.3.0 93 9/26/2023
0.2.3 92 9/26/2023
0.2.2 97 9/21/2023
0.2.1 86 9/21/2023
0.2.0 84 9/20/2023
0.1.0 139 4/20/2023