File tree Expand file tree Collapse file tree 4 files changed +48
-40
lines changed
Expand file tree Collapse file tree 4 files changed +48
-40
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ CoroutineScope(Dispatchers.IO).launch {
107107### Streaming Chat Language Model support
108108
109109Extension can convert [ StreamingChatLanguageModel] ( https://docs.langchain4j.dev/tutorials/response-streaming ) response into [ Kotlin Asynchronous Flow] ( https://kotlinlang.org/docs/flow.html ) :
110+
110111``` kotlin
111112val model: StreamingChatLanguageModel = OpenAiStreamingChatModel .builder()
112113 .apiKey(" your-api-key" )
@@ -173,6 +174,7 @@ runBlocking {
173174 println (result.content().text())
174175}
175176```
177+
176178Try [ this Kotlin Notebook] ( langchain4j-kotlin/notebooks/lc4kNotebook.ipynb ) yourself:
177179![ ] ( docs/kotlin-notebook-1.png )
178180
@@ -189,11 +191,13 @@ OPENAI_API_KEY=sk-xxxxx
189191### Building the Project
190192
191193Using Maven:
194+
192195``` shell
193196mvn clean verify
194197```
195198
196199Using Make:
200+
197201``` shell
198202make build
199203```
@@ -203,6 +207,7 @@ make build
203207Contributions are welcome! Please feel free to submit a Pull Request.
204208
205209Run before submitting your changes
210+
206211``` shell
207212make lint
208213```
Original file line number Diff line number Diff line change 22
331 . Cleanup
44
5- ``` shell
6- mvn release:clean
7- ```
5+ ``` shell
6+ mvn release:clean
7+ ```
8+
89 delete git tag, if needed:
9- ` ` ` shell
10- git tag -d v0.1.0
11- ` ` `
1210
11+ ``` shell
12+ git tag -d v0.1.0
13+ ```
13142 . Prepare the release:
14- ` ` ` shell
15- mvn release:prepare \
16- -Dresume=false \
17- -DpushChanges=false
18- ` ` `
1915
16+ ``` shell
17+ mvn release:prepare \
18+ -Dresume=false \
19+ -DpushChanges=false
20+ ```
20213 . Perform the release
2122
22- ` ` ` shell
23- GPG_TTY=$( tty) && \
24- export GPG_TTY && \
25- mvn release:perform -DlocalCheckout=true
26- ` ` `
27- https://stackoverflow.com/a/57591830/3315474
28-
23+ ``` shell
24+ GPG_TTY=$( tty) && \
25+ export GPG_TTY && \
26+ mvn release:perform -DlocalCheckout=true
27+ ```
2928
29+ https://stackoverflow.com/a/57591830/3315474
3030
31- In case of GPG error ` gpg: signing failed: Screen or window too small` , [try this](https://stackoverflow.com/a/67498543/3315474):
32- ` ` ` shell
33- gpg -K --keyid-format SHORT
34- ` ` `
31+ In case of GPG error
32+ ` gpg: signing failed: Screen or window too small ` , [ try this] ( https://stackoverflow.com/a/67498543/3315474 ) :
3533
34+ ``` shell
35+ gpg -K --keyid-format SHORT
36+ ```
3637
37384 . Push
3839
39- ` ` ` shell
40- git push origin
41- git push origin --tags
42- ` ` `
40+ ``` shell
41+ git push origin
42+ git push origin --tags
43+ ```
44+
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ val response =
5757 question = " How are you?" ,
5858 )
5959```
60+
6061System and user prompts will be:
6162
6263- ** System prompt:** "You are helpful assistant using chatMemoryID=default"
Original file line number Diff line number Diff line change 2929 <plugin >
3030 <groupId >org.jetbrains.kotlinx</groupId >
3131 <artifactId >kover-maven-plugin</artifactId >
32- <executions >
33- <execution >
34- <id >kover-xml</id >
35- <goals >
36- <goal >report-xml</goal >
37- </goals >
38- </execution >
39- <execution >
40- <id >kover-verify</id >
41- <goals >
42- <goal >verify</goal >
43- </goals >
44- </execution >
45- </executions >
4632
4733 <configuration >
4834 <aggregate >true</aggregate >
6046 </rule >
6147 </rules >
6248 </configuration >
49+ <executions >
50+ <execution >
51+ <id >kover-xml</id >
52+ <goals >
53+ <goal >report-xml</goal >
54+ </goals >
55+ </execution >
56+ <execution >
57+ <id >kover-verify</id >
58+ <goals >
59+ <goal >verify</goal >
60+ </goals >
61+ </execution >
62+ </executions >
6363 </plugin >
6464 </plugins >
6565 </build >
You can’t perform that action at this time.
0 commit comments