diff --git a/spring-ai-core/src/main/java/org/springframework/ai/chat/messages/FunctionMessage.java b/spring-ai-core/src/main/java/org/springframework/ai/chat/messages/FunctionMessage.java index 5fa90f50b..4b14b65a3 100644 --- a/spring-ai-core/src/main/java/org/springframework/ai/chat/messages/FunctionMessage.java +++ b/spring-ai-core/src/main/java/org/springframework/ai/chat/messages/FunctionMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,11 +21,11 @@ import java.util.Map; public class FunctionMessage extends AbstractMessage { public FunctionMessage(String content) { - super(MessageType.SYSTEM, content); + super(MessageType.FUNCTION, content); } public FunctionMessage(String content, Map properties) { - super(MessageType.SYSTEM, content, properties); + super(MessageType.FUNCTION, content, properties); } @Override