Skip to content

Commit 0d1f213

Browse files
committed
update graalvm version
1 parent ebb3df0 commit 0d1f213

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
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

src/main/java/com/javaaidev/agent/SimpleChatController.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package com.javaaidev.agent;
22

3+
import static com.javaaidev.agent.Constants.SYSTEM_TEXT;
4+
35
import org.springframework.ai.chat.client.ChatClient;
46
import org.springframework.web.bind.annotation.PostMapping;
57
import org.springframework.web.bind.annotation.RequestBody;
68

79
public 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) {

0 commit comments

Comments
 (0)