Commit Graph

3 Commits

Author SHA1 Message Date
LangChain4j 8e4254fc20
make OpenAI tokenizer more precise (#346)
This PR is a rework of `OpenAiTokenizer`.
Added `OpenAiTokenizerIT` with lots of tests to ensure that
`OpenAiTokenizer` calculates token usage very close to OpenAI.
In most cases calculation is 1:1, in some corner cases the difference is
within 5%.
2023-12-12 16:45:16 +01:00
LangChain4j 303b2ab7b5
OpenAI: Support parallel tool calling (#338)
This PR introduces a support for [parallel tool
calling](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling)
in OpenAI integration.
2023-12-08 17:29:56 +01:00
Julien Dubois 09ab6a1dda
Migration of the AzureOpenAiChatModel to use the Azure OpenAI SDK (#328)
This PR fixes https://github.com/langchain4j/langchain4j/issues/325

- [x] Migrate AzureOpenAiChatModel
- [x] Migrate AzureOpenAiEmbeddingModel
- [x] Migrate AzureOpenAiLanguageModel
- [x] Migrate AzureOpenAiStreamingChatModel
- [x] Migrate AzureOpenAiStreamingLanguageModel
- [x] Add a full suite of tests
2023-12-08 10:51:26 +01:00