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
Copy file name to clipboardExpand all lines: OpenAI_API/EndpointBase.cs
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -48,27 +48,27 @@ protected string Url
48
48
}
49
49
}
50
50
51
-
/// <summary>
52
-
/// Gets the version of the endpoint as url parameter, based on the configuration in the api definition. For example "https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#rest-api-versioning"
53
-
/// </summary>
54
-
protectedstringApiVersionParameter
55
-
{
56
-
get
57
-
{
58
-
if(string.IsNullOrEmpty(_Api.ApiVersion))
51
+
/// <summary>
52
+
/// Gets the version of the endpoint as url parameter, based on the configuration in the api definition. For example "https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#rest-api-versioning"
53
+
/// </summary>
54
+
protectedstringApiVersionParameter
55
+
{
56
+
get
57
+
{
58
+
if(string.IsNullOrEmpty(_Api.ApiVersion))
59
59
{
60
60
return"";
61
61
}
62
62
return$"api-version={_Api.ApiVersion}";
63
-
}
64
-
}
65
-
66
-
/// <summary>
67
-
/// Gets an HTTPClient with the appropriate authorization and other headers set
/// <exception cref="AuthenticationException">Thrown if there is no valid authentication. Please refer to <see href="https://github.com/OkGoDoIt/OpenAI-API-dotnet#authentication"/> for details.</exception>
71
-
protectedHttpClientGetClient()
63
+
}
64
+
}
65
+
66
+
/// <summary>
67
+
/// Gets an HTTPClient with the appropriate authorization and other headers set
/// <exception cref="AuthenticationException">Thrown if there is no valid authentication. Please refer to <see href="https://github.com/OkGoDoIt/OpenAI-API-dotnet#authentication"/> for details.</exception>
0 commit comments