Skip to content

Commit

Permalink
Fix Javadoc comments in OpenAiAudioApi and OpenAiApi
Browse files Browse the repository at this point in the history
- Correct OpenAiAudioApi Javadoc: remove chat completion reference
- Add missing @param for webClientBuilder in OpenAiApi constructor
  • Loading branch information
inpink authored and markpollack committed Sep 9, 2024
1 parent 3c9ae4e commit 897a411
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public OpenAiApi(String baseUrl, String apiKey) {
* @param baseUrl api base URL.
* @param apiKey OpenAI apiKey.
* @param restClientBuilder RestClient builder.
* @param webClientBuilder WebClient builder.
*/
public OpenAiApi(String baseUrl, String apiKey, RestClient.Builder restClientBuilder,
WebClient.Builder webClientBuilder) {
Expand All @@ -104,6 +105,7 @@ public OpenAiApi(String baseUrl, String apiKey, RestClient.Builder restClientBui
* @param baseUrl api base URL.
* @param apiKey OpenAI apiKey.
* @param restClientBuilder RestClient builder.
* @param webClientBuilder WebClient builder.
* @param responseErrorHandler Response error handler.
*/
public OpenAiApi(String baseUrl, String apiKey, RestClient.Builder restClientBuilder,
Expand All @@ -116,7 +118,10 @@ public OpenAiApi(String baseUrl, String apiKey, RestClient.Builder restClientBui
* Create a new chat completion api.
* @param baseUrl api base URL.
* @param apiKey OpenAI apiKey.
* @param completionsPath the path to the chat completions endpoint.
* @param embeddingsPath the path to the embeddings endpoint.
* @param restClientBuilder RestClient builder.
* @param webClientBuilder WebClient builder.
* @param responseErrorHandler Response error handler.
*/
public OpenAiApi(String baseUrl, String apiKey, String completionsPath, String embeddingsPath,
Expand All @@ -132,7 +137,10 @@ public OpenAiApi(String baseUrl, String apiKey, String completionsPath, String e
* @param baseUrl api base URL.
* @param apiKey OpenAI apiKey.
* @param headers the http headers to use.
* @param completionsPath the path to the chat completions endpoint.
* @param embeddingsPath the path to the embeddings endpoint.
* @param restClientBuilder RestClient builder.
* @param webClientBuilder WebClient builder.
* @param responseErrorHandler Response error handler.
*/
public OpenAiApi(String baseUrl, String apiKey, MultiValueMap<String, String> headers, String completionsPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public OpenAiAudioApi(String openAiToken) {
}

/**
* Create an new chat completion api.
* Create a new audio api.
* @param baseUrl api base URL.
* @param openAiToken OpenAI apiKey.
* @param restClientBuilder RestClient builder.
Expand All @@ -81,7 +81,7 @@ public OpenAiAudioApi(String baseUrl, String openAiToken, RestClient.Builder res
}

/**
* Create an new chat completion api.
* Create a new audio api.
* @param baseUrl api base URL.
* @param apiKey OpenAI apiKey.
* @param restClientBuilder RestClient builder.
Expand All @@ -96,7 +96,7 @@ public OpenAiAudioApi(String baseUrl, String apiKey, RestClient.Builder restClie
}

/**
* Create an new chat completion api.
* Create a new audio api.
* @param baseUrl api base URL.
* @param apiKey OpenAI apiKey.
* @param headers the http headers to use.
Expand Down

0 comments on commit 897a411

Please sign in to comment.