Incursa.OpenAI.ChatKit.AspNetCore
1.0.15
See the version list below for details.
dotnet add package Incursa.OpenAI.ChatKit.AspNetCore --version 1.0.15
NuGet\Install-Package Incursa.OpenAI.ChatKit.AspNetCore -Version 1.0.15
<PackageReference Include="Incursa.OpenAI.ChatKit.AspNetCore" Version="1.0.15" />
<PackageVersion Include="Incursa.OpenAI.ChatKit.AspNetCore" Version="1.0.15" />
<PackageReference Include="Incursa.OpenAI.ChatKit.AspNetCore" />
paket add Incursa.OpenAI.ChatKit.AspNetCore --version 1.0.15
#r "nuget: Incursa.OpenAI.ChatKit.AspNetCore, 1.0.15"
#:package Incursa.OpenAI.ChatKit.AspNetCore@1.0.15
#addin nuget:?package=Incursa.OpenAI.ChatKit.AspNetCore&version=1.0.15
#tool nuget:?package=Incursa.OpenAI.ChatKit.AspNetCore&version=1.0.15
Incursa.OpenAI.ChatKit.AspNetCore
Incursa.OpenAI.ChatKit.AspNetCore provides ASP.NET Core hosting helpers, Razor tag helpers, and packaged browser assets for Incursa.OpenAI.ChatKit.
What this package contains
MapChatKit<TServer, TContext>(...)for HTTP endpoint and SSE response handling<incursa-chatkit-assets />to emit the packaged CSS, package runtime, and ChatKit CDN script<incursa-chatkit />to render a browser mount point with serialized host configurationChatKitAspNetCoreOptionsandAddIncursaOpenAIChatKitAspNetCore(...)for shared UI defaults
Registration
builder.Services.AddIncursaOpenAIChatKitAspNetCore(options =>
{
options.DefaultHeight = "760px";
options.StartScreen.Greeting = "How can I help today?";
options.Theme.ColorScheme = "dark";
});
You can also bind the options from configuration:
builder.Services.AddIncursaOpenAIChatKitAspNetCore(
builder.Configuration.GetSection("ChatKit"));
Razor usage
@addTagHelper *, Incursa.OpenAI.ChatKit.AspNetCore
<incursa-chatkit-assets />
<incursa-chatkit
id="workspace-assistant"
class="chatkit-page"
session-endpoint="/api/chatkit/session"
action-endpoint="/api/chatkit/action">
</incursa-chatkit>
If you use the conventional local endpoints, the host tag helper can infer them automatically:
<incursa-chatkit-assets />
<incursa-chatkit />
Hosted API mode
The packaged frontend can also connect directly to a hosted ChatKit API:
<incursa-chatkit-assets />
<incursa-chatkit
api-url="https://example.contoso.com/chatkit"
domain-key="your-domain-key">
</incursa-chatkit>
Updating the packaged UI assets
The package includes both generated assets under wwwroot/chatkit and the source used to rebuild them under ClientApp/chatkit-runtime.
To update the packaged UI when @openai/chatkit-react or related frontend dependencies change:
cd src/Incursa.OpenAI.ChatKit.AspNetCore/ClientApp/chatkit-runtime
npm install
npm run build
Commit the updated dependency files and the regenerated files under wwwroot/chatkit.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Incursa.OpenAI.ChatKit (>= 1.0.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.