File tree 3 files changed +5
-3
lines changed
src/main/java/com/rebane2001/aimobs
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
AIMobs is a mod that lets you chat with Minecraft mobs and other entities by creating prompts and using the OpenAI API.
3
3
4
4
### Requirements
5
- - Minecraft 1.19.3
5
+ - Minecraft 1.19.4
6
6
- Fabric
7
7
- Fabric API
8
8
@@ -26,4 +26,4 @@ Some plans for the future:
26
26
- Support for the Forge modloader.
27
27
- Support for other AI APIs.
28
28
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)
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class AIMobsConfig {
12
12
public static class Config {
13
13
public boolean enabled = true ;
14
14
public String apiKey = "" ;
15
- public String model = "text-davinci-003 " ;
15
+ public String model = "gpt-3.5-turbo-0301 " ;
16
16
public float temperature = 0.6f ;
17
17
}
18
18
public static Config config ;
Original file line number Diff line number Diff line change 11
11
12
12
import java .io .IOException ;
13
13
//import java.util.Objects;
14
+ //import java.util.Objects;
14
15
15
16
public class RequestHandler {
16
17
private static class OpenAIRequest {
@@ -19,6 +20,7 @@ private static class OpenAIRequest {
19
20
String prompt = "" ;
20
21
float temperature = 0.6f ;
21
22
int max_tokens = 512 ;
23
+ int max_tokens = 512 ;
22
24
23
25
OpenAIRequest (String prompt , String model , float temperature ) {
24
26
this .prompt = prompt ;
You can’t perform that action at this time.
0 commit comments