Skip to content
Open
Show file tree
Hide file tree
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 @@ -696,6 +696,11 @@ public ChatCompletionRequest.Builder toolChoice(String toolChoice) {
return this;
}

public ChatCompletionRequest.Builder toolChoice(Object toolChoice) {
this.toolChoice = toolChoice;
return this;
}

public ChatCompletionRequest.Builder toolChoice(ChatCompletionRequestToolChoice toolChoice) {
this.toolChoice = toolChoice;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ public ChatMessage.Builder content(String content) {
return this;
}

public ChatMessage.Builder content(Object content) {
this.content = content;
return this;
}

public ChatMessage.Builder multiContent(List<ChatCompletionContentPart> multiContent) {
this.content = multiContent;
return this;
Expand Down