Skip to content

Commit

Permalink
#2247 - autoconfig openai maxSegmentsPerBatch (#97)
Browse files Browse the repository at this point in the history
## Issue
Continues langchain4j/langchain4j#2248 from Langchain4J, adding new parameter for
EmbeddingModel from OpenAi

## Change
I added new autoconfig field `maxSegmentsPerBatch`


## General checklist
- [X] There are no breaking changes
- [ ] I have added unit and/or integration tests for my change
- [ ] The tests cover both positive and negative cases
- [ ] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
  • Loading branch information
Empatixx authored Dec 20, 2024
1 parent 3041558 commit 3bdf8f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ OpenAiEmbeddingModel openAiEmbeddingModel(Properties properties) {
.organizationId(embeddingModelProperties.organizationId())
.modelName(embeddingModelProperties.modelName())
.dimensions(embeddingModelProperties.dimensions())
.maxSegmentsPerBatch(embeddingModelProperties.maxSegmentsPerBatch())
.user(embeddingModelProperties.user())
.timeout(embeddingModelProperties.timeout())
.maxRetries(embeddingModelProperties.maxRetries())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ record EmbeddingModelProperties(
String organizationId,
String modelName,
Integer dimensions,
Integer maxSegmentsPerBatch,
String user,
Duration timeout,
Integer maxRetries,
Expand Down

0 comments on commit 3bdf8f2

Please sign in to comment.