Skip to content

Commit a37d9b9

Browse files
guanxucyuluo-yx
andauthored
style: Use a consistent camelcase format for the name DashScope. (#31)
Co-authored-by: shown <[email protected]>
1 parent 8d6b4f4 commit a37d9b9

File tree

15 files changed

+46
-46
lines changed

15 files changed

+46
-46
lines changed

auto-configurations/spring-ai-alibaba-autoconfigure-dashscope/src/main/java/com/alibaba/cloud/ai/autoconfigure/dashscope/DashScopeChatProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class DashScopeChatProperties extends DashScopeParentProperties {
4545
private static final Double DEFAULT_TEMPERATURE = 0.8d;
4646

4747
/**
48-
* Enable Dashscope ai chat client.
48+
* Enable DashScope ai chat client.
4949
*/
5050
private boolean enabled = true;
5151

auto-configurations/spring-ai-alibaba-autoconfigure-dashscope/src/main/java/com/alibaba/cloud/ai/autoconfigure/dashscope/DashScopeEmbeddingProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class DashScopeEmbeddingProperties extends DashScopeParentProperties {
2929
public static final String DEFAULT_EMBEDDING_MODEL = "text-embedding-v3";
3030

3131
/**
32-
* Enable Dashscope embedding client.
32+
* Enable DashScope embedding client.
3333
*/
3434
private boolean enabled = true;
3535

auto-configurations/spring-ai-alibaba-autoconfigure-mcp-router/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<dependencies>
4141

42-
<!-- Dashscope SDK -->
42+
<!-- DashScope SDK -->
4343
<dependency>
4444
<groupId>com.alibaba.cloud.ai</groupId>
4545
<artifactId>spring-ai-alibaba-dashscope</artifactId>

document-readers/spring-ai-alibaba-starter-document-reader-email/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<version>1.6.2</version>
7171
</dependency>
7272

73-
<!-- Dashscope SDK -->
73+
<!-- DashScope SDK -->
7474
<dependency>
7575
<groupId>com.alibaba.cloud.ai</groupId>
7676
<artifactId>spring-ai-alibaba-dashscope</artifactId>

document-readers/spring-ai-alibaba-starter-document-reader-mbox/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<artifactId>spring-ai-commons</artifactId>
5959
</dependency>
6060

61-
<!-- Dashscope SDK -->
61+
<!-- DashScope SDK -->
6262
<dependency>
6363
<groupId>com.alibaba.cloud.ai</groupId>
6464
<artifactId>spring-ai-alibaba-dashscope</artifactId>

models/dashscope/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</parent>
2626
<artifactId>spring-ai-alibaba-dashscope</artifactId>
2727
<packaging>jar</packaging>
28-
<name>Spring AI Alibaba Dashscope Model Extension</name>
28+
<name>Spring AI Alibaba DashScope Model Extension</name>
2929
<description>Spring AI Alibaba core module, DashScope 4 Spring AI Implementation</description>
3030

3131
<url>https://github.com/alibaba/spring-ai-alibaba</url>

models/dashscope/src/main/java/com/alibaba/cloud/ai/dashscope/agent/DashScopeAgent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
import java.util.Map;
4343

4444
/**
45-
* Title Dashscope low level agent.<br>
46-
* Description Dashscope low level agent.<br>
45+
* Title DashScope low level agent.<br>
46+
* Description DashScope low level agent.<br>
4747
*
4848
* @author yuanci.ytb
4949
* @since 1.0.0-M2

models/dashscope/src/main/java/com/alibaba/cloud/ai/dashscope/chat/DashScopeChatModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private ChatResponse toChatResponse(ChatCompletion chatCompletion, ChatResponse
317317
return new ChatResponse(List.of());
318318
}
319319

320-
// Dashscope searchInfos
320+
// DashScope searchInfos
321321
DashScopeApiSpec.SearchInfo searchInfo = chatCompletion.output().searchInfo();
322322

323323
ConcurrentHashMap<String, String> finalRoleMap = roleMap == null ? new ConcurrentHashMap<>() : roleMap;

models/dashscope/src/main/java/com/alibaba/cloud/ai/dashscope/chat/DashScopeChatOptions.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -554,131 +554,131 @@ public void setMultiModel(Boolean multiModel) {
554554
this. multiModel = multiModel;
555555
}
556556

557-
public static DashscopeChatOptionsBuilder builder() {
558-
return new DashscopeChatOptionsBuilder();
557+
public static DashScopeChatOptionsBuilder builder() {
558+
return new DashScopeChatOptionsBuilder();
559559
}
560560

561-
public static class DashscopeChatOptionsBuilder {
561+
public static class DashScopeChatOptionsBuilder {
562562

563563
private DashScopeChatOptions options;
564564

565-
public DashscopeChatOptionsBuilder() {
565+
public DashScopeChatOptionsBuilder() {
566566
this.options = new DashScopeChatOptions();
567567
}
568568

569-
public DashscopeChatOptionsBuilder withModel(String model) {
569+
public DashScopeChatOptionsBuilder withModel(String model) {
570570
this.options.model = model;
571571
return this;
572572
}
573573

574-
public DashscopeChatOptionsBuilder withSearchOptions(DashScopeApiSpec.SearchOptions searchOptions) {
574+
public DashScopeChatOptionsBuilder withSearchOptions(DashScopeApiSpec.SearchOptions searchOptions) {
575575
this.options.searchOptions = searchOptions;
576576
return this;
577577
}
578578

579-
public DashscopeChatOptionsBuilder withParallelToolCalls(Boolean parallelToolCalls) {
579+
public DashScopeChatOptionsBuilder withParallelToolCalls(Boolean parallelToolCalls) {
580580
this.options.parallelToolCalls = parallelToolCalls;
581581
return this;
582582
}
583583

584-
public DashscopeChatOptionsBuilder withHttpHeaders(Map<String, String> httpHeaders) {
584+
public DashScopeChatOptionsBuilder withHttpHeaders(Map<String, String> httpHeaders) {
585585
this.options.httpHeaders = httpHeaders;
586586
return this;
587587
}
588588

589-
public DashscopeChatOptionsBuilder withMaxToken(Integer maxTokens) {
589+
public DashScopeChatOptionsBuilder withMaxToken(Integer maxTokens) {
590590
this.options.maxTokens = maxTokens;
591591
return this;
592592
}
593593

594-
public DashscopeChatOptionsBuilder withTemperature(Double temperature) {
594+
public DashScopeChatOptionsBuilder withTemperature(Double temperature) {
595595
this.options.temperature = temperature;
596596
return this;
597597
}
598598

599-
public DashscopeChatOptionsBuilder withTopP(Double topP) {
599+
public DashScopeChatOptionsBuilder withTopP(Double topP) {
600600
this.options.topP = topP;
601601
return this;
602602
}
603603

604-
public DashscopeChatOptionsBuilder withTopK(Integer topK) {
604+
public DashScopeChatOptionsBuilder withTopK(Integer topK) {
605605
this.options.topK = topK;
606606
return this;
607607
}
608608

609-
public DashscopeChatOptionsBuilder withStop(List<Object> stop) {
609+
public DashScopeChatOptionsBuilder withStop(List<Object> stop) {
610610
this.options.stop = stop;
611611
return this;
612612
}
613613

614-
public DashscopeChatOptionsBuilder withResponseFormat(DashScopeResponseFormat responseFormat) {
614+
public DashScopeChatOptionsBuilder withResponseFormat(DashScopeResponseFormat responseFormat) {
615615
this.options.responseFormat = responseFormat;
616616
return this;
617617
}
618618

619-
public DashscopeChatOptionsBuilder withEnableSearch(Boolean enableSearch) {
619+
public DashScopeChatOptionsBuilder withEnableSearch(Boolean enableSearch) {
620620
this.options.enableSearch = enableSearch;
621621
return this;
622622
}
623623

624-
public DashscopeChatOptionsBuilder withRepetitionPenalty(Double repetitionPenalty) {
624+
public DashScopeChatOptionsBuilder withRepetitionPenalty(Double repetitionPenalty) {
625625
this.options.repetitionPenalty = repetitionPenalty;
626626
return this;
627627
}
628628

629-
public DashscopeChatOptionsBuilder withTools(List<DashScopeApiSpec.FunctionTool> tools) {
629+
public DashScopeChatOptionsBuilder withTools(List<DashScopeApiSpec.FunctionTool> tools) {
630630
this.options.tools = tools;
631631
return this;
632632
}
633633

634-
public DashscopeChatOptionsBuilder withToolChoice(Object toolChoice) {
634+
public DashScopeChatOptionsBuilder withToolChoice(Object toolChoice) {
635635
this.options.toolChoice = toolChoice;
636636
return this;
637637
}
638638

639-
public DashscopeChatOptionsBuilder withStream(Boolean stream) {
639+
public DashScopeChatOptionsBuilder withStream(Boolean stream) {
640640
this.options.stream = stream;
641641
return this;
642642
}
643643

644-
public DashscopeChatOptionsBuilder withToolCallbacks(
644+
public DashScopeChatOptionsBuilder withToolCallbacks(
645645
List<ToolCallback> toolCallbacks) {
646646
Assert.notNull(toolCallbacks, "toolCallbacks cannot be null");
647647
Assert.noNullElements(toolCallbacks, "toolCallbacks cannot contain null elements");
648648
this.options.toolCallbacks = toolCallbacks;
649649
return this;
650650
}
651651

652-
public DashscopeChatOptionsBuilder withToolNames(Set<String> toolNames) {
652+
public DashScopeChatOptionsBuilder withToolNames(Set<String> toolNames) {
653653
Assert.notNull(toolNames, "toolNames cannot be null");
654654
Assert.noNullElements(toolNames, "toolNames cannot contain null elements");
655655
toolNames.forEach(tool -> Assert.hasText(tool, "toolNames cannot contain empty elements"));
656656
this.options.toolNames = toolNames;
657657
return this;
658658
}
659659

660-
public DashscopeChatOptionsBuilder withToolName(String toolName) {
660+
public DashScopeChatOptionsBuilder withToolName(String toolName) {
661661
Assert.hasText(toolName, "Tool name must not be empty");
662662
this.options.toolNames.add(toolName);
663663
return this;
664664
}
665665

666-
public DashscopeChatOptionsBuilder withInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) {
666+
public DashScopeChatOptionsBuilder withInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) {
667667
this.options.internalToolExecutionEnabled = internalToolExecutionEnabled;
668668
return this;
669669
}
670670

671-
public DashscopeChatOptionsBuilder withSeed(Integer seed) {
671+
public DashScopeChatOptionsBuilder withSeed(Integer seed) {
672672
this.options.seed = seed;
673673
return this;
674674
}
675675

676-
public DashscopeChatOptionsBuilder withIncrementalOutput(Boolean incrementalOutput) {
676+
public DashScopeChatOptionsBuilder withIncrementalOutput(Boolean incrementalOutput) {
677677
this.options.incrementalOutput = incrementalOutput;
678678
return this;
679679
}
680680

681-
public DashscopeChatOptionsBuilder withToolContext(Map<String, Object> toolContext) {
681+
public DashScopeChatOptionsBuilder withToolContext(Map<String, Object> toolContext) {
682682
if (this.options.toolContext == null) {
683683
this.options.toolContext = toolContext;
684684
}
@@ -688,22 +688,22 @@ public DashscopeChatOptionsBuilder withToolContext(Map<String, Object> toolConte
688688
return this;
689689
}
690690

691-
public DashscopeChatOptionsBuilder withVlHighResolutionImages(Boolean vlHighResolutionImages) {
691+
public DashScopeChatOptionsBuilder withVlHighResolutionImages(Boolean vlHighResolutionImages) {
692692
this.options.vlHighResolutionImages = vlHighResolutionImages;
693693
return this;
694694
}
695695

696-
public DashscopeChatOptionsBuilder withEnableThinking(Boolean enableThinking) {
696+
public DashScopeChatOptionsBuilder withEnableThinking(Boolean enableThinking) {
697697
this.options.enableThinking = enableThinking;
698698
return this;
699699
}
700700

701-
public DashscopeChatOptionsBuilder withMultiModel(Boolean multiModel) {
701+
public DashScopeChatOptionsBuilder withMultiModel(Boolean multiModel) {
702702
this.options.multiModel = multiModel;
703703
return this;
704704
}
705705

706-
public DashscopeChatOptionsBuilder withThinkingBudget(Integer thinkingBudget) {
706+
public DashScopeChatOptionsBuilder withThinkingBudget(Integer thinkingBudget) {
707707
this.options.thinkingBudget = thinkingBudget;
708708
return this;
709709
}

models/dashscope/src/main/java/com/alibaba/cloud/ai/dashscope/chat/observation/DashScopeChatModelObservationConvention.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.springframework.util.CollectionUtils;
3030

3131
/**
32-
* Dashscope conventions to populate observations for chat model operations.
32+
* DashScope conventions to populate observations for chat model operations.
3333
*
3434
* @author Lumian
3535
* @since 1.0.0

0 commit comments

Comments
 (0)