We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
User-Agent
1 parent f8e8dca commit c4c75c3Copy full SHA for c4c75c3
1 file changed
src/AI/Service.cs
@@ -84,8 +84,8 @@ private OpenAIClient GetOpenAIClient()
84
{
85
var credential = new ApiKeyCredential(ReadApiKeyFromEnv ? Environment.GetEnvironmentVariable(ApiKey) : ApiKey);
86
return Server.Contains("openai.azure.com/", StringComparison.Ordinal)
87
- ? new AzureOpenAIClient(new Uri(Server), credential, new AzureOpenAIClientOptions() { UserAgentApplicationId = string.Empty })
88
- : new OpenAIClient(credential, new() { Endpoint = new Uri(Server), UserAgentApplicationId = string.Empty });
+ ? new AzureOpenAIClient(new Uri(Server), credential)
+ : new OpenAIClient(credential, new() { Endpoint = new Uri(Server) });
89
}
90
91
private string _name = string.Empty;
0 commit comments