Rob1997.CereBro.Open-AI
1.0.1
See the version list below for details.
dotnet add package Rob1997.CereBro.Open-AI --version 1.0.1
NuGet\Install-Package Rob1997.CereBro.Open-AI -Version 1.0.1
<PackageReference Include="Rob1997.CereBro.Open-AI" Version="1.0.1" />
<PackageVersion Include="Rob1997.CereBro.Open-AI" Version="1.0.1" />
<PackageReference Include="Rob1997.CereBro.Open-AI" />
paket add Rob1997.CereBro.Open-AI --version 1.0.1
#r "nuget: Rob1997.CereBro.Open-AI, 1.0.1"
#:package Rob1997.CereBro.Open-AI@1.0.1
#addin nuget:?package=Rob1997.CereBro.Open-AI&version=1.0.1
#tool nuget:?package=Rob1997.CereBro.Open-AI&version=1.0.1
CereBro.Open-AI
CereBro.Open-AI is OpenAI's implementation for CereBro.
Installation
You can install the package from NuGet using the following command:
dotnet add package Rob1997.CereBro.Open-AI
Usage
Once you've installed the package, you'll need to add OpenAI's API Key to your environment variables.
export OPEN_AI_API_KEY="your-api-key"
$env:OPEN_AI_API_KEY="your-api-key"
If you want this to be permanent, you can add it to your .bashrc
or .bash_profile
file in linux or use the following command in PowerShell.
[Environment]::SetEnvironmentVariable("OPEN_AI_API_KEY", "your-api-key", "User")
Once you've set the API Key, you can use the OpenAIChatProvider
in your Runner.StartConversation
method.
// Awaitable Task for the conversation
Task conversation = Runner.StartConversation<OpenAIChatProvider, ConsoleChatDispatcher>(new ITool[]
{
// Examples
new LocationTool(),
new DateTool(),
new WeatherTool()
});
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- OpenAI (>= 2.1.0)
- Rob1997.CereBro (>= 1.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rob1997.CereBro.Open-AI:
Package | Downloads |
---|---|
Rob1997.CereBro.Playground
CereBro's Playground |
GitHub repositories
This package is not used by any popular GitHub repositories.