Skip to content

Commit

Permalink
attempt to de-internationalize
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed May 4, 2024
1 parent e327428 commit 697b909
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/myrobotlab/service/Gpt3.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit 697b909

Please sign in to comment.