You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
ZhiPuAi completions-path default /v4/chat/completions
public ResponseEntity<ChatCompletion> chatCompletionEntity(ChatCompletionRequest chatRequest) {
Assert.notNull(chatRequest, "The request body can not be null.");
Assert.isTrue(!chatRequest.stream(), "Request must set the stream property to false.");
return this.restClient.post()
.uri("/v4/chat/completions")
.body(chatRequest)
.retrieve()
.toEntity(ChatCompletion.class);
}
public ResponseEntity<ChatCompletion> chatCompletionEntity(ChatCompletionRequest chatRequest) {
Assert.notNull(chatRequest, "The request body can not be null.");
Assert.isTrue(!chatRequest.stream(), "Request must set the stream property to false.");
return this.restClient.post()
.uri("/v1/text/chatcompletion_v2")
.body(chatRequest)
.retrieve()
.toEntity(ChatCompletion.class);
}
The text was updated successfully, but these errors were encountered:
Expected Behavior
support completions-path properties config
Current Behavior
ZhiPuAi completions-path default /v4/chat/completions
MiniMax completions-path default /v1/text/chatcompletion_v2
The text was updated successfully, but these errors were encountered: