From 697b90956bddba993160345e716099d1ff074d2a Mon Sep 17 00:00:00 2001 From: supertick Date: Sat, 4 May 2024 12:36:28 -0700 Subject: [PATCH] attempt to de-internationalize --- src/main/java/org/myrobotlab/service/Gpt3.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/myrobotlab/service/Gpt3.java b/src/main/java/org/myrobotlab/service/Gpt3.java index 5f5a95d112..04e785b0a5 100644 --- a/src/main/java/org/myrobotlab/service/Gpt3.java +++ b/src/main/java/org/myrobotlab/service/Gpt3.java @@ -2,6 +2,7 @@ import java.io.IOException; import java.util.List; +import java.util.Locale; import java.util.Map; import org.myrobotlab.codec.CodecUtils; @@ -93,8 +94,8 @@ public Response getResponse(String text) { } if (!c.sleeping) { - - String temp = String.format("\t\"temperature\": %f\r\n", c.temperature); + // avoid 0,8000000 + String temp = String.format(Locale.US, "\t\"temperature\": %f\r\n", c.temperature); // chat completions String json =