You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OpenAI clients are **thread-safe** and can be safely registered as **singletons** in ASP.NET Core's Dependency Injection container. This maximizes resource efficiency and HTTP connection reuse.
145
145
146
-
Register the `OpenAIClient` as a singleton in your `Program.cs`:
146
+
Register the `ChatClient` as a singleton in your `Program.cs`:
0 commit comments