Skip to content

Fix incorrect comments in OpenAiAudioApi and OpenAiApi #1330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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