Skip to content

Commit 30a9c50

Browse files
committed
Merge branch 'dev' of https://github.com/Eianex/aimobs into dev
2 parents c89a492 + 3b840c8 commit 30a9c50

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
AIMobs is a mod that lets you chat with Minecraft mobs and other entities by creating prompts and using the OpenAI API.
33

44
### Requirements
5-
- Minecraft 1.19.3
5+
- Minecraft 1.19.4
66
- Fabric
77
- Fabric API
88

@@ -26,4 +26,4 @@ Some plans for the future:
2626
- Support for the Forge modloader.
2727
- Support for other AI APIs.
2828

29-
The icon used is the **🧠** emoji from [Twemoji](https://twemoji.twitter.com/) (CC BY 4.0)
29+
The icon used is the **🧠** emoji from [Twemoji](https://twemoji.twitter.com/) (CC BY 4.0)

src/main/java/com/rebane2001/aimobs/AIMobsConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class AIMobsConfig {
1212
public static class Config {
1313
public boolean enabled = true;
1414
public String apiKey = "";
15-
public String model = "text-davinci-003";
15+
public String model = "gpt-3.5-turbo-0301";
1616
public float temperature = 0.6f;
1717
}
1818
public static Config config;

src/main/java/com/rebane2001/aimobs/RequestHandler.java

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import java.io.IOException;
1313
//import java.util.Objects;
14+
//import java.util.Objects;
1415

1516
public class RequestHandler {
1617
private static class OpenAIRequest {
@@ -19,6 +20,7 @@ private static class OpenAIRequest {
1920
String prompt = "";
2021
float temperature = 0.6f;
2122
int max_tokens = 512;
23+
int max_tokens = 512;
2224

2325
OpenAIRequest(String prompt, String model, float temperature) {
2426
this.prompt = prompt;

0 commit comments

Comments
 (0)