From ca0d10d67863dff550a47edc5ae86f529977eccc Mon Sep 17 00:00:00 2001 From: Christian Tzolov Date: Wed, 14 Feb 2024 07:18:45 +0100 Subject: [PATCH] Resolve #324 --- .../springframework/ai/chat/messages/FunctionMessage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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