Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soenneker/soenneker.azure.openai.client

An async thread-safe singleton for the Azure OpenAI client
https://github.com/soenneker/soenneker.azure.openai.client

azure azureopenaiclient client csharp dotnet openai singleton util

Last synced: 19 days ago
JSON representation

An async thread-safe singleton for the Azure OpenAI client

Awesome Lists containing this project

README

        

[![](https://img.shields.io/nuget/v/soenneker.azure.openai.client.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.azure.openai.client/)
[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.azure.openai.client/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.azure.openai.client/actions/workflows/publish-package.yml)
[![](https://img.shields.io/nuget/dt/soenneker.azure.openai.client.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.azure.openai.client/)

# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Azure.OpenAI.Client
### An async thread-safe singleton for the Azure OpenAI client

## Installation

```
dotnet add package Soenneker.Azure.OpenAI.Client
```

Register:

```
builder.services.AddAzureOpenAIClientUtilAsSingleton();
```

`IConfiguration` values:

```
"Azure:OpenAI:Deployment"
"Azure:OpenAI:ApiKey"
"Azure:OpenAI:Uri"
```