Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/admin-sample.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

build_api_blazor:
name: build api + blazor web
runs-on: ubuntu-24.04
runs-on: windows-2025

steps:

Expand Down Expand Up @@ -77,13 +77,13 @@ jobs:
dotnet build AdminPanel/src/Client/AdminPanel.Client.Web/AdminPanel.Client.Web.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" --no-restore -c Release

- name: Publish
run: dotnet publish AdminPanel/src/Server/AdminPanel.Server.Web/AdminPanel.Server.Web.csproj -c Release --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APP_VERSION}}"
run: dotnet publish AdminPanel/src/Server/AdminPanel.Server.Web/AdminPanel.Server.Web.csproj -c Release -o server -p:Version="${{ vars.APP_VERSION}}"

- name: Upload server artifact
uses: actions/upload-artifact@v4
with:
name: server-bundle
path: ${{env.DOTNET_ROOT}}/server
path: server
include-hidden-files: true # Required for wwwroot/.well-known folder

deploy_blazor_wasm_standalone:
Expand Down Expand Up @@ -128,12 +128,12 @@ jobs:
run: dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" --no-restore -c Release

- name: Publish
run: dotnet publish AdminPanel/src/Client/AdminPanel.Client.Web/AdminPanel.Client.Web.csproj -c Release -o ${{env.DOTNET_ROOT}}/client -p:Version="${{ vars.APP_VERSION}}"
run: dotnet publish AdminPanel/src/Client/AdminPanel.Client.Web/AdminPanel.Client.Web.csproj -c Release -o client -p:Version="${{ vars.APP_VERSION}}"

- name: Upload to asw
run: |
npm install -g @azure/static-web-apps-cli
swa deploy --deployment-token ${{ secrets.ADMINPANEL_ASW_TOKEN }} --env production --app-location ${{env.DOTNET_ROOT}}/client/wwwroot
swa deploy --deployment-token ${{ secrets.ADMINPANEL_ASW_TOKEN }} --env production --app-location client/wwwroot

deploy_api_blazor:
name: deploy api + blazor
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:

build_blazor_hybrid_windows:
name: build blazor hybrid (windows)
runs-on: windows-2022
runs-on: windows-2025

steps:

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/blazorui.demo.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

build_api_blazor:
name: build api + blazor web
runs-on: ubuntu-24.04
runs-on: windows-2025

steps:

Expand Down Expand Up @@ -49,13 +49,13 @@ jobs:
run: dotnet build src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj -p:Version="${{ vars.APP_VERSION}}" -c Release

- name: Publish
run: dotnet publish src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj -c Release -p:Version="${{ vars.APP_VERSION}}" --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server
run: dotnet publish src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj -c Release -p:Version="${{ vars.APP_VERSION}}" -o server

- name: Upload server artifact
uses: actions/upload-artifact@v4
with:
name: server-bundle
path: ${{env.DOTNET_ROOT}}/server
path: server
include-hidden-files: true # Required for wwwroot/.well-known folder

deploy_api_blazor:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:

build_blazor_hybrid_windows:
name: build blazor hybrid (windows)
runs-on: windows-2022
runs-on: windows-2025

steps:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/platform.website.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

build_api_blazor:
name: build api + blazor web
runs-on: ubuntu-24.04
runs-on: windows-2025

steps:

Expand All @@ -34,7 +34,7 @@ jobs:
run: dotnet build src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj -t:BeforeBuildTasks -c Release -p:Version="${{ vars.APP_VERSION}}"

- name: Publish
run: dotnet publish src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj -c Release -r linux-x64 -o server -p:Version="${{ vars.APP_VERSION}}"
run: dotnet publish src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj -c Release -o server -p:Version="${{ vars.APP_VERSION}}"

- name: Upload server artifact
uses: actions/upload-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sales-module-demo.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

build_api_blazor:
name: build api + blazor web
runs-on: ubuntu-24.04
runs-on: windows-2025

steps:

Expand Down Expand Up @@ -75,13 +75,13 @@ jobs:
dotnet build SalesModule/src/Client/SalesModule.Client.Web/SalesModule.Client.Web.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true --no-restore -c Release

- name: Publish
run: dotnet publish SalesModule/src/Server/SalesModule.Server.Web/SalesModule.Server.Web.csproj -c Release --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true
run: dotnet publish SalesModule/src/Server/SalesModule.Server.Web/SalesModule.Server.Web.csproj -c Release -o server -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true

- name: Upload server artifact
uses: actions/upload-artifact@v4
with:
name: server-bundle
path: ${{env.DOTNET_ROOT}}/server
path: server
include-hidden-files: true # Required for wwwroot/.well-known folder

deploy_api_blazor:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:

build_blazor_hybrid_windows:
name: build blazor hybrid (windows)
runs-on: windows-2022
runs-on: windows-2025

steps:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sales.website.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

build_api_blazor:
name: build api + blazor web
runs-on: ubuntu-24.04
runs-on: windows-2025

steps:

Expand All @@ -34,7 +34,7 @@ jobs:
run: dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj -t:BeforeBuildTasks --no-restore -c Release -p:Version="${{ vars.APP_VERSION}}"

- name: Publish
run: dotnet publish src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj -c Release -r linux-x64 -o server -p:Version="${{ vars.APP_VERSION}}"
run: dotnet publish src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj -c Release -o server -p:Version="${{ vars.APP_VERSION}}"

- name: Upload server artifact
uses: actions/upload-artifact@v4
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/todo-sample.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

build_api_blazor:
name: build api + blazor web
runs-on: ubuntu-24.04
runs-on: windows-2025

steps:

Expand Down Expand Up @@ -77,13 +77,13 @@ jobs:
dotnet build TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" --no-restore -c Release

- name: Publish
run: dotnet publish TodoSample/src/Server/TodoSample.Server.Web/TodoSample.Server.Web.csproj -c Release --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APP_VERSION}}"
run: dotnet publish TodoSample/src/Server/TodoSample.Server.Web/TodoSample.Server.Web.csproj -c Release -o server -p:Version="${{ vars.APP_VERSION}}"

- name: Upload server artifact
uses: actions/upload-artifact@v4
with:
name: server-bundle
path: ${{env.DOTNET_ROOT}}/server
path: server
include-hidden-files: true # Required for wwwroot/.well-known folder

deploy_api_blazor:
Expand Down Expand Up @@ -159,12 +159,12 @@ jobs:
run: dotnet build TodoSample/src/Client/TodoSample.Client.Core/TodoSample.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" --no-restore -c Release

- name: Publish
run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -o ${{env.DOTNET_ROOT}}/client -p:Version="${{ vars.APP_VERSION}}" -p:RunAOTCompilation=true -p:InvariantGlobalization=true
run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -o client -p:Version="${{ vars.APP_VERSION}}" -p:RunAOTCompilation=true -p:InvariantGlobalization=true

- name: Upload to asw
run: |
npm install -g @azure/static-web-apps-cli
swa deploy --deployment-token ${{ secrets.TODO_AOT_ASW_TOKEN }} --env production --app-location ${{env.DOTNET_ROOT}}/client/wwwroot
swa deploy --deployment-token ${{ secrets.TODO_AOT_ASW_TOKEN }} --env production --app-location client/wwwroot

deploy_blazor_wasm_standalone_offlineDb:
name: build blazor wasm standalone (Offline database)
Expand Down Expand Up @@ -210,12 +210,12 @@ jobs:
run: dotnet build TodoSample/src/Client/TodoSample.Client.Core/TodoSample.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true --no-restore -c Release

- name: Publish
run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -o ${{env.DOTNET_ROOT}}/client -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true
run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -o client -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true

- name: Upload to asw
run: |
npm install -g @azure/static-web-apps-cli
swa deploy --deployment-token ${{ secrets.TODO_OFFLINE_ASW_TOKEN }} --env production --app-location ${{env.DOTNET_ROOT}}/client/wwwroot
swa deploy --deployment-token ${{ secrets.TODO_OFFLINE_ASW_TOKEN }} --env production --app-location client/wwwroot

deploy_blazor_wasm_standalone_small:
name: build blazor wasm standalone (small)
Expand Down Expand Up @@ -257,16 +257,16 @@ jobs:
run: dotnet build TodoSample/src/Client/TodoSample.Client.Core/TodoSample.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APP_VERSION}}" --no-restore -c Release

- name: Publish
run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -o ${{env.DOTNET_ROOT}}/client -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true
run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -o client -p:Version="${{ vars.APP_VERSION}}" -p:InvariantGlobalization=true

- name: Upload to asw
run: |
npm install -g @azure/static-web-apps-cli
swa deploy --deployment-token ${{ secrets.TODO_SMALL_ASW_TOKEN }} --env production --app-location ${{env.DOTNET_ROOT}}/client/wwwroot
swa deploy --deployment-token ${{ secrets.TODO_SMALL_ASW_TOKEN }} --env production --app-location client/wwwroot

build_blazor_hybrid_windows:
name: build blazor hybrid (windows)
runs-on: windows-2022
runs-on: windows-2025

steps:

Expand Down
9 changes: 9 additions & 0 deletions src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class AppSettings
public TelegramBotSettings TelegramBotSettings { get; set; } = default!;

public AzureOpenAIOptions AzureOpenAI { get; set; } = default!;

public OpenAIOptions OpenAI { get; set; } = default!;
}

public class HealthCheckSettings
Expand All @@ -28,3 +30,10 @@ public class AzureOpenAIOptions
public Uri? ChatEndpoint { get; set; }
public string? ChatApiKey { get; set; }
}

public class OpenAIOptions
{
public string? ChatModel { get; set; }
public Uri? ChatEndpoint { get; set; }
public string? ChatApiKey { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</PackageReference>
<PackageReference Include="Jint" Version="4.4.1" />
<PackageReference Include="Microsoft.AspNetCore.OData" Version="9.4.0" />
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.10.0-preview.1.25513.3" />
<PackageReference Include="MimeTypeMapOfficial" Version="1.0.17" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" />
<PackageReference Include="AspNetCore.HealthChecks.System" Version="9.0.0" />
Expand Down
15 changes: 14 additions & 1 deletion src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Startup/Services.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO.Compression;
using System.ClientModel.Primitives;
using System.IO.Compression;
using Bit.BlazorUI.Demo.Server.Services;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.OData;
Expand Down Expand Up @@ -63,6 +64,18 @@ public static void Add(IServiceCollection services, IWebHostEnvironment env, ICo
.UseFunctionInvocation()
.UseDistributedCache();
}
else if (string.IsNullOrEmpty(appSettings?.OpenAI?.ChatApiKey) is false)
{
// https://github.com/dotnet/extensions/tree/main/src/Libraries/Microsoft.Extensions.AI.OpenAI#microsoftextensionsaiopenai
services.AddChatClient(sp => new OpenAI.Chat.ChatClient(model: appSettings.OpenAI.ChatModel, credential: new(appSettings.OpenAI.ChatApiKey), options: new()
{
Endpoint = appSettings.OpenAI.ChatEndpoint,
Transport = new HttpClientPipelineTransport(sp.GetRequiredService<IHttpClientFactory>().CreateClient("AI"))
}).AsIChatClient())
.UseLogging()
.UseFunctionInvocation()
.UseDistributedCache();
}

services.AddDistributedMemoryCache();

Expand Down
5 changes: 5 additions & 0 deletions src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"ChatModel": "gpt-4.1-mini",
"ChatApiKey": null,
"ChatEndpoint": null
},
"OpenAI": {
"ChatModel": "gpt-4.1-mini",
"ChatApiKey": null,
"ChatEndpoint": null
}
},
"AllowedHosts": "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
displayName: 'build blazor hybrid (windows)'

pool:
vmImage: 'windows-2022'
vmImage: 'windows-2025'

steps:
- task: UseDotNet@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
dotnet build src/Client/Boilerplate.Client.Web/Boilerplate.Client.Web.csproj -t:BeforeBuildTasks --no-restore -c Release -p:Version="${{ vars.APP_VERSION }}"

- name: Publish
run: dotnet publish src/Server/Boilerplate.Server.Web/Boilerplate.Server.Web.csproj -c Release --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APP_VERSION }}" -p:Environment=${{ inputs.ENV_NAME }}
run: dotnet publish src/Server/Boilerplate.Server.Web/Boilerplate.Server.Web.csproj -c Release --self-contained -r linux-x64 -o server -p:Version="${{ vars.APP_VERSION }}" -p:Environment=${{ inputs.ENV_NAME }}
- name: Upload server artifact
uses: actions/upload-artifact@v4
with:
name: server-bundle
path: ${{env.DOTNET_ROOT}}/server
path: server
include-hidden-files: true # Required for wwwroot/.well-known folder

deploy_api_blazor:
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:

build_blazor_hybrid_windows:
name: build blazor hybrid (windows)
runs-on: windows-2022
runs-on: windows-2025
environment: ${{ inputs.ENV_NAME }}
steps:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<PackageVersion Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.Extensions.AI.OpenAI" Version="9.10.0-preview.1.25513.3" />
<PackageVersion Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.Extensions.AI.AzureAIInference" Version="9.10.0-preview.1.25513.3" />
<PackageVersion Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="SmartComponents.LocalEmbeddings.SemanticKernel" Version="0.1.0-preview10148" />
<PackageVersion Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.SemanticKernel.Connectors.HuggingFace" Version="1.66.0-preview" />
<PackageVersion Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.SemanticKernel.Core" Version="1.66.0" />
<PackageVersion Condition=" ('$(database)' == 'PostgreSQL' OR '$(database)' == '') " Include="Pgvector.EntityFrameworkCore" Version="0.2.2" />
<PackageVersion Condition="'$(module)' == 'Admin' OR '$(module)' == ''" Include="Newtonsoft.Json" Version="13.0.4" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<PackageReference Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.Extensions.AI.OpenAI" />
<PackageReference Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.SemanticKernel.Core" />
<PackageReference Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="SmartComponents.LocalEmbeddings.SemanticKernel" />
<PackageReference Condition=" ('$(signalR)' == 'true' OR '$(signalR)' == '') OR ('$(database)' == 'PostgreSQL' OR '$(database)' == '') OR ('$(database)' == 'SqlServer' OR '$(database)' == '') " Include="Microsoft.SemanticKernel.Connectors.HuggingFace" />
<PackageReference Condition=" ('$(database)' == 'PostgreSQL' OR '$(database)' == '') " Include="Pgvector.EntityFrameworkCore" />
<Using Include="Microsoft.EntityFrameworkCore.Migrations" />
<Using Include="Microsoft.EntityFrameworkCore.Metadata.Builders" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ public void Configure(EntityTypeBuilder<Product> builder)
//#if (database == "PostgreSQL" || database == "SqlServer")
if (AppDbContext.IsEmbeddingEnabled)
{
builder.Property(p => p.Embedding).HasColumnType("vector(384)"); // Checkout appsettings.json's AI:EmbeddingOptions:Dimensions
//#if (database == "PostgreSQL")
builder.HasIndex(m => m.Embedding)
.HasMethod("hnsw") // ivfflat
.HasOperators("vector_cosine_ops");
//#endif
builder.Property(p => p.Embedding).HasColumnType("vector(768)"); // Checkout appsettings.json's AI:EmbeddingOptions:Dimensions
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,20 @@ void AddDbContext(DbContextOptionsBuilder options)
.UseOpenTelemetry();
// .UseDistributedCache()
}
else if (string.IsNullOrEmpty(appSettings.AI?.HuggingFace?.EmbeddingEndpoint) is false)
{
services.AddEmbeddingGenerator(sp => new Microsoft.SemanticKernel.Connectors.HuggingFace.HuggingFaceEmbeddingGenerator(
new Uri(appSettings.AI.HuggingFace.EmbeddingEndpoint),
apiKey: appSettings.AI.HuggingFace.EmbeddingApiKey,
httpClient: sp.GetRequiredService<IHttpClientFactory>().CreateClient("AI"), loggerFactory: sp.GetRequiredService<ILoggerFactory>()))
.ConfigureOptions(options =>
{
configuration.GetRequiredSection("AI:EmbeddingOptions").Bind(options);
})
.UseLogging()
.UseOpenTelemetry();
// .UseDistributedCache()
}
else
{
services.AddEmbeddingGenerator(sp => new LocalTextEmbeddingGenerationService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public partial class AIOptions
{
public OpenAIOptions? OpenAI { get; set; }
public AzureOpenAIOptions? AzureOpenAI { get; set; }
public HuggingFaceOptions? HuggingFace { get; set; }
}

public class OpenAIOptions
Expand All @@ -184,6 +185,13 @@ public class AzureOpenAIOptions
public string? EmbeddingApiKey { get; set; }
}

public class HuggingFaceOptions
{
public string? EmbeddingApiKey { get; set; }

public string? EmbeddingEndpoint { get; set; }
}

//#endif

public partial class EmailOptions
Expand Down
Loading
Loading