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 5555			<version >${project.parent.version} </version >
5656		</dependency >
5757
58- 		<dependency >
59- 			<groupId >io.rest-assured</groupId >
60- 			<artifactId >json-path</artifactId >
61- 		</dependency >
62- 
6358		<dependency >
6459			<groupId >com.github.victools</groupId >
6560			<artifactId >jsonschema-generator</artifactId >
Original file line number Diff line number Diff line change 1616
1717package  org .springframework .ai .openai ;
1818
19- import  org .apache .commons .lang3 .StringUtils ;
2019import  org .slf4j .Logger ;
2120import  org .slf4j .LoggerFactory ;
2221import  reactor .core .publisher .Flux ;
3534import  org .springframework .http .ResponseEntity ;
3635import  org .springframework .retry .support .RetryTemplate ;
3736import  org .springframework .util .Assert ;
37+ import  org .springframework .util .StringUtils ;
3838
3939/** 
4040 * OpenAI audio speech client implementation for backed by {@link OpenAiAudioApi}. 
@@ -174,7 +174,7 @@ private OpenAiAudioApi.SpeechRequest createRequest(SpeechPrompt request) {
174174			}
175175		}
176176
177- 		String  input  = StringUtils .isNotBlank (options .getInput ()) ? options .getInput ()
177+ 		String  input  = StringUtils .hasText (options .getInput ()) ? options .getInput ()
178178				: request .getInstructions ().getText ();
179179
180180		OpenAiAudioApi .SpeechRequest .Builder  requestBuilder  = OpenAiAudioApi .SpeechRequest .builder ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments