Skip to content

Commit c5bf644

Browse files
committed
fix(mistral) Fix the PaymentStatusFunctionCallingIT configuraiton
Resolves #1853
1 parent f2820cd commit c5bf644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/spring-ai-mistral-ai/src/test/java/org/springframework/ai/mistralai/api/tool/PaymentStatusFunctionCallingIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* @author Christian Tzolov
5454
* @since 0.8.1
5555
*/
56-
@Disabled("See https://github.com/spring-projects/spring-ai/issues/1853")
56+
// @Disabled("See https://github.com/spring-projects/spring-ai/issues/1853")
5757
@EnabledIfEnvironmentVariable(named = "MISTRAL_AI_API_KEY", matches = ".+")
5858
public class PaymentStatusFunctionCallingIT {
5959

@@ -131,7 +131,7 @@ public void toolFunctionCall() throws JsonProcessingException {
131131

132132
// Extend conversation with function response.
133133
// The functionName is used to identify the function response!
134-
messages.add(new ChatCompletionMessage(result.toString(), Role.TOOL, functionName, null));
134+
messages.add(new ChatCompletionMessage(result.toString(), Role.TOOL, functionName, null, toolCall.id()));
135135
}
136136

137137
response = mistralApi

0 commit comments

Comments
 (0)