@@ -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 }
0 commit comments