Skip to content

Commit e35b78b

Browse files
Konstantin PavlovKonstantin Pavlov
authored andcommitted
Reformat files
1 parent 81d19cd commit e35b78b

File tree

4 files changed

+48
-40
lines changed

4 files changed

+48
-40
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ CoroutineScope(Dispatchers.IO).launch {
107107
### Streaming Chat Language Model support
108108

109109
Extension can convert [StreamingChatLanguageModel](https://docs.langchain4j.dev/tutorials/response-streaming) response into [Kotlin Asynchronous Flow](https://kotlinlang.org/docs/flow.html):
110+
110111
```kotlin
111112
val model: StreamingChatLanguageModel = OpenAiStreamingChatModel.builder()
112113
.apiKey("your-api-key")
@@ -173,6 +174,7 @@ runBlocking {
173174
println(result.content().text())
174175
}
175176
```
177+
176178
Try [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

191193
Using Maven:
194+
192195
```shell
193196
mvn clean verify
194197
```
195198

196199
Using Make:
200+
197201
```shell
198202
make build
199203
```
@@ -203,6 +207,7 @@ make build
203207
Contributions are welcome! Please feel free to submit a Pull Request.
204208

205209
Run before submitting your changes
210+
206211
```shell
207212
make lint
208213
```

RELEASE.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,43 @@
22

33
1. 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+
```
1314
2. 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+
```
2021
3. 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

3738
4. 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+

docs/PromptTemplates.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ val response =
5757
question = "How are you?",
5858
)
5959
```
60+
6061
System and user prompts will be:
6162

6263
- **System prompt:** "You are helpful assistant using chatMemoryID=default"

reports/pom.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@
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>
@@ -60,6 +46,20 @@
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>

0 commit comments

Comments
 (0)