Skip to content

Commit ca0d10d

Browse files
committed
Resolve #324
1 parent 22bd645 commit ca0d10d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-core/src/main/java/org/springframework/ai/chat/messages/FunctionMessage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,11 +21,11 @@
2121
public class FunctionMessage extends AbstractMessage {
2222

2323
public FunctionMessage(String content) {
24-
super(MessageType.SYSTEM, content);
24+
super(MessageType.FUNCTION, content);
2525
}
2626

2727
public FunctionMessage(String content, Map<String, Object> properties) {
28-
super(MessageType.SYSTEM, content, properties);
28+
super(MessageType.FUNCTION, content, properties);
2929
}
3030

3131
@Override

0 commit comments

Comments
 (0)