File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed
src/test/java/io/github/alexcheng1982/springai/dashscope
spring-boot-autoconfigure Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 77 <parent >
88 <groupId >io.github.alexcheng1982</groupId >
99 <artifactId >spring-ai-dashscope-client-parent</artifactId >
10- <version >1.2.2 </version >
10+ <version >1.3.0 </version >
1111 </parent >
1212 <artifactId >spring-ai-dashscope-client</artifactId >
1313 <packaging >jar</packaging >
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ class DashscopeChatOptionsTest {
1414 void testChatOptions () {
1515 var options = DashscopeChatOptions .builder ()
1616 .withModel (DashscopeModelName .QWEN_TURBO )
17- .withTemperature (0.2f )
17+ .withTemperature (0.2 )
1818 .withFunctions (Set .of ("add" ))
1919 .build ();
2020 assertEquals (DashscopeModelName .QWEN_TURBO , options .getModel ());
21- assertEquals (0.2f , options .getTemperature ());
22- var anotherOptions = DashscopeChatOptions .builder ().withTemperature (0.7f )
21+ assertEquals (0.2 , options .getTemperature ());
22+ var anotherOptions = DashscopeChatOptions .builder ().withTemperature (0.7 )
2323 .build ();
2424 var updated = options .updateFromChatOptions (anotherOptions );
2525 assertEquals (DashscopeModelName .QWEN_TURBO , updated .getModel ());
26- assertEquals (0.7f , updated .getTemperature ());
26+ assertEquals (0.7 , updated .getTemperature ());
2727 assertFalse (CollectionUtils .isEmpty (updated .getFunctions ()));
2828 }
2929}
Original file line number Diff line number Diff line change 11package io .github .alexcheng1982 .springai .dashscope ;
22
3- import static org .junit .jupiter .api .Assertions .assertFalse ;
43import static org .junit .jupiter .api .Assertions .assertNotNull ;
4+ import static org .junit .jupiter .api .Assertions .assertTrue ;
55
66import org .junit .jupiter .api .Test ;
77
@@ -13,6 +13,6 @@ void smokeTest() {
1313 var model = new DashscopeEmbeddingModel ();
1414 var result = model .embed ("hello" );
1515 assertNotNull (result );
16- assertFalse (result .isEmpty () );
16+ assertTrue (result .length > 0 );
1717 }
1818}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ String runFunction() {
6969 .build ();
7070 var options = DashscopeChatOptions .builder ()
7171 .withModel (DashscopeModelName .QWEN_PLUS )
72- .withTemperature (0.2f )
72+ .withTemperature (0.2 )
7373 .withTools (List .of (
7474 ToolFunction .builder ()
7575 .type ("function" )
Original file line number Diff line number Diff line change 66
77 <groupId >io.github.alexcheng1982</groupId >
88 <artifactId >spring-ai-dashscope-client-parent</artifactId >
9- <version >1.2.2 </version >
9+ <version >1.3.0 </version >
1010 <packaging >pom</packaging >
1111
1212 <name >Aliyun Dashscope Spring AI Client :: Parent</name >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.github.alexcheng1982</groupId >
88 <artifactId >spring-ai-dashscope-client-parent</artifactId >
9- <version >1.2.2 </version >
9+ <version >1.3.0 </version >
1010 </parent >
1111
1212 <artifactId >spring-ai-dashscope-spring-boot-autoconfigure</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.github.alexcheng1982</groupId >
88 <artifactId >spring-ai-dashscope-client-parent</artifactId >
9- <version >1.2.2 </version >
9+ <version >1.3.0 </version >
1010 </parent >
1111
1212 <artifactId >spring-ai-dashscope-spring-boot-starter</artifactId >
You can’t perform that action at this time.
0 commit comments