ps
Browse files
src/lib/components/PicletGenerator/PicletGenerator.svelte
CHANGED
|
@@ -36,14 +36,12 @@
|
|
| 36 |
|
| 37 |
console.log('Generating text with GPT-OSS-120B...');
|
| 38 |
|
|
|
|
| 39 |
const result = await gptOssClient.predict("/chat", [
|
| 40 |
-
prompt,
|
| 41 |
-
[],
|
| 42 |
-
"You are a helpful assistant that creates Pokemon-style monster concepts based on real-world objects.",
|
| 43 |
-
0.7
|
| 44 |
-
0.0, // frequency_penalty
|
| 45 |
-
0.0, // presence_penalty
|
| 46 |
-
2000 // max_new_tokens
|
| 47 |
]);
|
| 48 |
|
| 49 |
// Extract Response section only (GPT-OSS formats with Analysis and Response)
|
|
|
|
| 36 |
|
| 37 |
console.log('Generating text with GPT-OSS-120B...');
|
| 38 |
|
| 39 |
+
// ChatInterface expects: message, history, system_prompt, temperature
|
| 40 |
const result = await gptOssClient.predict("/chat", [
|
| 41 |
+
prompt, // message
|
| 42 |
+
[], // history
|
| 43 |
+
"You are a helpful assistant that creates Pokemon-style monster concepts based on real-world objects.", // system_prompt
|
| 44 |
+
0.7 // temperature
|
|
|
|
|
|
|
|
|
|
| 45 |
]);
|
| 46 |
|
| 47 |
// Extract Response section only (GPT-OSS formats with Analysis and Response)
|