Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.azure.openai.client
- Owner: soenneker
- License: mit
- Created: 2024-10-27T13:15:08.000Z (21 days ago)
- Default Branch: main
- Last Pushed: 2024-10-27T13:36:41.000Z (21 days ago)
- Last Synced: 2024-10-28T16:15:22.198Z (20 days ago)
- Topics: azure, azureopenaiclient, client, csharp, dotnet, openai, singleton, util
- Language: C#
- Homepage: https://soenneker.com
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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"
```