GH-2342: Remove unused json-path dependency in spring-ai-openai · spring-projects/spring-ai@9de13d1 (original) (raw)
File tree
2 files changed
lines changed
- src/main/java/org/springframework/ai/openai
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -55,11 +55,6 @@ | ||
55 | 55 | <version>${project.parent.version}</version> |
56 | 56 | </dependency> |
57 | 57 | |
58 | - <dependency> | |
59 | - <groupId>io.rest-assured</groupId> | |
60 | - <artifactId>json-path</artifactId> | |
61 | - </dependency> | |
62 | - | |
63 | 58 | <dependency> |
64 | 59 | <groupId>com.github.victools</groupId> |
65 | 60 | <artifactId>jsonschema-generator</artifactId> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -16,7 +16,6 @@ | ||
16 | 16 | |
17 | 17 | package org.springframework.ai.openai; |
18 | 18 | |
19 | -import org.apache.commons.lang3.StringUtils; | |
20 | 19 | import org.slf4j.Logger; |
21 | 20 | import org.slf4j.LoggerFactory; |
22 | 21 | import reactor.core.publisher.Flux; |
@@ -35,6 +34,7 @@ | ||
35 | 34 | import org.springframework.http.ResponseEntity; |
36 | 35 | import org.springframework.retry.support.RetryTemplate; |
37 | 36 | import org.springframework.util.Assert; |
37 | +import org.springframework.util.StringUtils; | |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * OpenAI audio speech client implementation for backed by {@link OpenAiAudioApi}. |
@@ -174,7 +174,7 @@ private OpenAiAudioApi.SpeechRequest createRequest(SpeechPrompt request) { | ||
174 | 174 | } |
175 | 175 | } |
176 | 176 | |
177 | -String input = StringUtils.isNotBlank(options.getInput()) ? options.getInput() | |
177 | +String input = StringUtils.hasText(options.getInput()) ? options.getInput() | |
178 | 178 | : request.getInstructions().getText(); |
179 | 179 | |
180 | 180 | OpenAiAudioApi.SpeechRequest.Builder requestBuilder = OpenAiAudioApi.SpeechRequest.builder() |