File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
src/main/java/org/springframework/ai/openai Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 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
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
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 ()
You can’t perform that action at this time.
0 commit comments