-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat request builders #62
Conversation
Introduced `ChatRequestBuilder` and `chatRequest` extensions to simplify constructing and configuring ChatRequests. Added corresponding async methods, tests, and updated examples to enhance usability and ensure consistent behavior.
Introduced a new `samples` module to demonstrate the usage of the LangChain4j-Kotlin library. Includes a `ChatModel` example and updates the root `pom.xml` to include the module. Updated dependencies and configurations to support Kotlin and the newly added artifacts.
Upgraded `langchain4j` dependencies to `1.0.0-alpha1` and replaced outdated builder syntax with concise Kotlin DSL in code examples. These changes improve clarity, maintain modernity, and ensure compatibility with the latest API.
Introduce a new `OpenAiChatModelExample.kt` showcasing asynchronous chat with OpenAI's GPT-4-based model. Updated `pom.xml` to include required dependencies, renamed `ChatModel.kt` to `ChatModelExample.kt`, and added logging configuration via `simplelogger.properties`. Enhanced README with updated sample references.
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
==========================================
- Coverage 75.56% 75.52% -0.05%
==========================================
Files 14 15 +1
Lines 176 192 +16
Branches 15 15
==========================================
+ Hits 133 145 +12
- Misses 34 38 +4
Partials 9 9 ☔ View full report in Codecov by Sentry. |
Included a Kotlin code snippet demonstrating how to use the `chatAsync` function with a `ChatRequestBuilder`. This improves clarity and provides developers with a concrete example for better understanding and implementation.
Introduced
ChatRequestBuilder
andchatRequest
extensions to simplify constructing and configuring ChatRequests. Added corresponding async methods, tests, and updated examples to enhance usability and ensure consistent behavior.Introduced a new
samples
module to demonstrate the usage of the LangChain4j-Kotlin library. Includes aChatModel
example and updates the rootpom.xml
to include the module. Updated dependencies and configurations to support Kotlin and the newly added artifacts.Upgraded
langchain4j
dependencies to1.0.0-alpha1
and replaced outdated builder syntax with concise Kotlin DSL in code examples. These changes improve clarity, maintain modernity, and ensure compatibility with the latest API.Introduce a new
OpenAiChatModelExample.kt
showcasing asynchronous chat with OpenAI's GPT-4-based model. Updatedpom.xml
to include required dependencies, renamedChatModel.kt
toChatModelExample.kt
, and added logging configuration viasimplelogger.properties
. Enhanced README with updated sample references.