Skip to content

Commit a7ffe61

Browse files
committed
docs: Update documentation that became obsolete due to code cleanup
1 parent 18c9c4f commit a7ffe61

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/nl/dannyj/mistral/interceptors/MistralHeaderInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class MistralHeaderInterceptor implements Interceptor {
3030

3131
public MistralHeaderInterceptor(@NonNull String apiKey) {
3232
if (apiKey.isBlank()) {
33-
throw new IllegalArgumentException("No API key provided in MistralClient");
33+
throw new IllegalArgumentException("No API key provided");
3434
}
3535

3636
this.apiKey = apiKey;

src/main/java/nl/dannyj/mistral/services/HttpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class HttpService {
3939
private final OkHttpClient httpClient;
4040

4141
/**
42-
* Constructor that initializes the HttpService with a provided MistralClient.
42+
* Constructor that initializes the HttpService with a provided OkHttpClient.
4343
*
4444
* @param httpClient The OkHttpClient to be used for making requests to the Mistral AI API
4545
*/

src/main/java/nl/dannyj/mistral/services/MistralService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class MistralService {
5858
private final Validator validator;
5959

6060
/**
61-
* Constructor that initializes the MistralService with a provided MistralClient and HttpService.
61+
* Constructor that initializes the MistralService with a provided HttpService and ObjectMapper.
6262
*
6363
* @param httpService The HttpService to be used for making HTTP requests to the Mistral AI API
6464
* @param objectMapper The ObjectMapper to be used for converting objects to and from JSON

0 commit comments

Comments
 (0)