Jack Gerrits da759b6aed
Dotnet - core framework rework (rebased) (#511)
* dotnet rework

* add dotnet workload update to startup

* fix build

* interim fixup

* this is the stuff that was missing

* renaming the .net classes

* more build fixup

* port dev-team sample WIP

* add proto messages and IHandle to agents

* add github variables

* remove OAgents gh-flow

* remove OAgents library

* add .vs to gitignore

---------

Co-authored-by: Kosta Petan <kostapetan@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-17 13:01:49 +00:00

30 lines
857 B
C#

using System.ComponentModel.DataAnnotations;
namespace DevTeam.Options;
public class OpenAIOptions
{
// Embeddings
[Required]
public required string EmbeddingsEndpoint { get; set; }
[Required]
public required string EmbeddingsApiKey { get; set; }
[Required]
public required string EmbeddingsDeploymentOrModelId { get; set; }
// Chat
[Required]
public required string ChatEndpoint { get; set; }
[Required]
public required string ChatApiKey { get; set; }
[Required]
public required string ChatDeploymentOrModelId { get; set; }
// TextToImage
[Required]
public required string ImageEndpoint { get; set; }
[Required]
public required string ImageApiKey { get; set; }
// When using OpenAI, this is not required.
public required string ImageDeploymentOrModelId { get; set; }
}