Skip to content

Conversation

@ilayaperumalg
Copy link
Member

  • Refactor the options builder methods to remove with as the suffix

    • Update all the models under spring-ai-bedrock
  • Deprecate the existing methods

@ilayaperumalg ilayaperumalg added this to the 1.0.0-M5 milestone Dec 16, 2024
 - Refactor the options builder methods to remove `with` as the suffix
   - Update all the models under spring-ai-bedrock

 - Deprecate the existing methods
 - Update references and docs
@ilayaperumalg ilayaperumalg force-pushed the refactor-bedrock-options branch from b67a74f to c82ce2e Compare December 16, 2024 20:22
.withTopP(0.9)
.withMaxTokens(100)
.build());
this(chatApi, BedrockAi21Jurassic2ChatOptions.builder().temperature(0.8).topP(0.9).maxTokens(100).build());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should validate this is the same set of defaults as with autoconfig


public BedrockLlamaChatModel(LlamaChatBedrockApi chatApi) {
this(chatApi, BedrockLlamaChatOptions.builder().withTemperature(0.8).withTopP(0.9).withMaxGenLen(100).build());
this(chatApi, BedrockLlamaChatOptions.builder().temperature(0.8).topP(0.9).maxGenLen(100).build());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check for consistency with autoconfig defaults.

@markpollack
Copy link
Member

merged in 65e7a1d

@markpollack markpollack self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants