File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ namespace OpenAI_API
1616 /// </summary>
1717 public abstract class EndpointBase
1818 {
19+ private const string Value = "okgodoit/dotnet_openai_api" ;
20+
1921 /// <summary>
2022 /// The internal reference to the API, mostly used for authentication
2123 /// </summary>
@@ -60,7 +62,7 @@ protected HttpClient GetClient()
6062
6163 HttpClient client = new HttpClient ( ) ;
6264 client . DefaultRequestHeaders . Authorization = new System . Net . Http . Headers . AuthenticationHeaderValue ( "Bearer" , _Api . Auth . ApiKey ) ;
63- client . DefaultRequestHeaders . Add ( "User-Agent" , "okgodoit/dotnet_openai_api" ) ;
65+ client . DefaultRequestHeaders . Add ( "User-Agent" , Value ) ;
6466 if ( ! string . IsNullOrEmpty ( _Api . Auth . OpenAIOrganization ) ) client . DefaultRequestHeaders . Add ( "OpenAI-Organization" , _Api . Auth . OpenAIOrganization ) ;
6567
6668 return client ;
You can’t perform that action at this time.
0 commit comments