Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
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 @@ -306,7 +306,7 @@ public record JSONRPCResponse( // @formatter:off
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonIgnoreProperties(ignoreUnknown = true)
public record JSONRPCError( // @formatter:off
@JsonProperty("code") int code,
@JsonProperty("code") Integer code,
@JsonProperty("message") String message,
@JsonProperty("data") Object data) { // @formatter:on
}
Expand Down Expand Up @@ -1822,14 +1822,14 @@ public record CreateMessageRequest( // @formatter:off
@JsonProperty("systemPrompt") String systemPrompt,
@JsonProperty("includeContext") ContextInclusionStrategy includeContext,
@JsonProperty("temperature") Double temperature,
@JsonProperty("maxTokens") int maxTokens,
@JsonProperty("maxTokens") Integer maxTokens,
@JsonProperty("stopSequences") List<String> stopSequences,
@JsonProperty("metadata") Map<String, Object> metadata,
@JsonProperty("_meta") Map<String, Object> meta) implements Request { // @formatter:on

// backwards compatibility constructor
public CreateMessageRequest(List<SamplingMessage> messages, ModelPreferences modelPreferences,
String systemPrompt, ContextInclusionStrategy includeContext, Double temperature, int maxTokens,
String systemPrompt, ContextInclusionStrategy includeContext, Double temperature, Integer maxTokens,
List<String> stopSequences, Map<String, Object> metadata) {
this(messages, modelPreferences, systemPrompt, includeContext, temperature, maxTokens, stopSequences,
metadata, null);
Expand Down Expand Up @@ -1859,7 +1859,7 @@ public static class Builder {

private Double temperature;

private int maxTokens;
private Integer maxTokens;

private List<String> stopSequences;

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.