File tree Expand file tree Collapse file tree 3 files changed +0
-25
lines changed
models/spring-ai-zhipuai/src/main/java/org/springframework/ai/zhipuai Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -568,16 +568,6 @@ else if (mediaContentData instanceof String text) {
568
568
}
569
569
}
570
570
571
- private ChatOptions buildRequestOptions (ZhiPuAiApi .ChatCompletionRequest request ) {
572
- return ChatOptions .builder ()
573
- .model (request .model ())
574
- .maxTokens (request .maxTokens ())
575
- .stopSequences (request .stop ())
576
- .temperature (request .temperature ())
577
- .topP (request .topP ())
578
- .build ();
579
- }
580
-
581
571
public void setObservationConvention (ChatModelObservationConvention observationConvention ) {
582
572
this .observationConvention = observationConvention ;
583
573
}
Original file line number Diff line number Diff line change @@ -78,9 +78,6 @@ public class ZhiPuAiChatOptions implements ToolCallingChatOptions {
78
78
* provide a list of functions the model may generate JSON inputs for.
79
79
*/
80
80
private @ JsonProperty ("tools" ) List <ZhiPuAiApi .FunctionTool > tools ;
81
-
82
- private @ JsonProperty ("tools1" ) List <ZhiPuAiApi .Foo > foos ;
83
-
84
81
/**
85
82
* Controls which (if any) function is called by the model. none means the model will not call a
86
83
* function and instead generates a message. auto means the model can pick between generating a message or calling a
Original file line number Diff line number Diff line change @@ -314,18 +314,6 @@ public String getValue() {
314
314
}
315
315
}
316
316
317
- public class Foo {
318
-
319
- String foo ;
320
-
321
- public Foo () {
322
-
323
- }
324
- public Foo (String foo ) {
325
- this .foo = foo ;
326
- }
327
- }
328
-
329
317
330
318
/**
331
319
* Represents a tool the model may call. Currently, only functions are supported as a tool.
You can’t perform that action at this time.
0 commit comments