Spaces:
Running
Running
fix gemma-3 api compatibility by removing system messages
Browse files- src/aiService.js +3 -4
src/aiService.js
CHANGED
@@ -223,11 +223,10 @@ Passage: "${passage}"`
|
|
223 |
body: JSON.stringify({
|
224 |
model: this.model,
|
225 |
messages: [{
|
226 |
-
role: 'system',
|
227 |
-
content: 'Process two passages for a cloze reading exercise. For each passage: 1) Select words for blanks, 2) Generate a contextual introduction. Return a JSON object with both passages\' data.'
|
228 |
-
}, {
|
229 |
role: 'user',
|
230 |
-
content: `
|
|
|
|
|
231 |
|
232 |
PASSAGE 1:
|
233 |
Title: "${book1.title}" by ${book1.author}
|
|
|
223 |
body: JSON.stringify({
|
224 |
model: this.model,
|
225 |
messages: [{
|
|
|
|
|
|
|
226 |
role: 'user',
|
227 |
+
content: `You process passages for cloze reading exercises. For each passage: 1) Select words for blanks, 2) Generate a contextual introduction. Return a JSON object with both passages' data.
|
228 |
+
|
229 |
+
Process these two passages for cloze exercises:
|
230 |
|
231 |
PASSAGE 1:
|
232 |
Title: "${book1.title}" by ${book1.author}
|