File tree Expand file tree Collapse file tree
src/main/java/com/javaaidev/agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@v4
1414 - uses : graalvm/setup-graalvm@v1
1515 with :
16- java-version : ' 21 '
17- distribution : ' graalvm-community '
16+ java-version : ' 25 '
17+ distribution : ' graalvm'
1818 github-token : ${{ secrets.GITHUB_TOKEN }}
1919 cache : maven
2020 - name : Build with Maven
Original file line number Diff line number Diff line change 11package com .javaaidev .agent ;
22
3+ import static com .javaaidev .agent .Constants .SYSTEM_TEXT ;
4+
35import org .springframework .ai .chat .client .ChatClient ;
46import org .springframework .web .bind .annotation .PostMapping ;
57import org .springframework .web .bind .annotation .RequestBody ;
68
79public class SimpleChatController {
810
9- public static final String SYSTEM_TEXT = """
10- You are a chef who is proficient in various cuisines. Please answer users' questions about cooking.
11- For other unrelated inputs, simply tell the user that you don't know.
12- """ ;
13-
1411 private final ChatClient chatClient ;
1512
1613 public SimpleChatController (ChatClient .Builder builder ) {
You can’t perform that action at this time.
0 commit comments