Skip to content

Commit 98db18f

Browse files
authored
OpenAI: remove deprecated APIs (#124)
## Breaking Change `OpenAiTokenizer` bean is no longer created automatically as there is no default constructor any more and there is no way to configure the model for the tokenizer. This is a part of langchain4j/langchain4j#2792 ## General checklist - [ ] There are no breaking changes - [ ] I have added unit and/or integration tests for my change - [ ] The tests cover both positive and negative cases - [X] I have manually run all the unit and integration tests in the module I have added/changed, and they are all green - [X] 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)
1 parent 899a6c4 commit 98db18f

File tree

1 file changed

+0
-6
lines changed
  • langchain4j-open-ai-spring-boot-starter/src/main/java/dev/langchain4j/openai/spring

1 file changed

+0
-6
lines changed

langchain4j-open-ai-spring-boot-starter/src/main/java/dev/langchain4j/openai/spring/AutoConfig.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,4 @@ HttpClientBuilder openAiImageModelHttpClientBuilder(ObjectProvider<RestClient.Bu
363363
// executor is not needed for no-streaming OpenAiImageModel
364364
.createDefaultStreamingRequestExecutor(false);
365365
}
366-
367-
@Bean
368-
@ConditionalOnMissingBean
369-
OpenAiTokenizer openAiTokenizer() {
370-
return new OpenAiTokenizer();
371-
}
372366
}

0 commit comments

Comments
 (0)