Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix:add new params max_token #410

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ public class DashScopeChatOptions implements FunctionCallingOptions, ChatOptions
*/
private @JsonProperty("response_format") DashScopeResponseFormat responseFormat;

/**
* @param maxTokens The maximum number of tokens to generate in the chat completion.
* * The total length of input tokens and generated tokens is limited by the model's
* * context length.
*/
@JsonProperty("max_tokens") Integer maxTokens;

/**
* 控制在流式输出模式下是否开启增量输出,即后续输出内容是否包含已输出的内容。设置为True时,将开启增量输出模式,后面输出不会包含已经输出的内容,您需要自行拼接整体输出;设置为False则会包含已输出的内容。
*/
Expand Down Expand Up @@ -220,6 +227,10 @@ public Integer getTopK() {
return this.topK;
}

public Integer setMaxTokens() {
return this.maxTokens;
}

public void setTopK(Integer topK) {
this.topK = topK;
}
Expand Down
Loading