فهرست منبع

LLamaCCP to run Mistral

tbvns 5 ماه پیش
والد
کامیت
29936403e0

+ 2 - 1
src/main/java/xyz/prismix/OPCAI_server/Ai/Text/Mistral.java

@@ -11,7 +11,8 @@ public class Mistral {
                     "C:\\Users\\Tbvns\\Downloads\\llama-b4094-bin-win-cuda-cu12.2.0-x64\\llama-cli.exe",
                     "-m", "C:\\Users\\Tbvns\\Downloads\\Mistral-7B-Instruct-v0.3.Q5_K_S.gguf",
                     "-p", "\"" + prompt + "\"",
-                    "-ngl", "100", "--no-display-prompt"
+                    "-ngl", "100", "--no-display-prompt",
+                    "--temp", "10"
                 )
                 .start();
         String data = "";

+ 1 - 1
src/main/java/xyz/prismix/OPCAI_server/OpcaiServerApplication.java

@@ -14,6 +14,7 @@ public class OpcaiServerApplication {
 		System.out.println(Mistral.prompt("""
 		Only reply with the JSON.
 		The type of the pokemon is Light
+		The name need to be original and one word
 		Generate a new imaginary pokemon by completing the following JSON
 		{
 			'name': [ENTER NAME HERE]
@@ -21,7 +22,6 @@ public class OpcaiServerApplication {
 			'atk desc 1': [ENTER ATK DESC 1 HERE]
 			'atk 2': [ENTER ATK 2 HERE]
 			'atk desc 2': [ENTER ATK DESC 2 HERE]
-			'weakness': [ENTER WEAKNESS HERE]
 			'visual desc': [ENTER VISUAL DESC HERE]
 		}
 		"""